Changeset 2307005
- Timestamp:
- 05/18/2020 09:06:49 AM (6 years ago)
- Location:
- mediamatic/trunk
- Files:
-
- 4 edited
-
assets/js/trigger-folder.js (modified) (1 diff)
-
inc/interface.php (modified) (1 diff)
-
mediamatic.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mediamatic/trunk/assets/js/trigger-folder.js
r2297086 r2307005 5 5 (function ($) { 6 6 "use strict"; 7 8 var folderInContent = { 9 10 render: function(data){ 11 12 13 var self = this; 14 var html = ''; 15 16 if(data.length && html !== ''){ 17 18 var folder_container = '<div class="themedo-mediamatic-container"><ul></ul></div>'; 19 $('.attachments').before(folder_container); 20 data.forEach(function(item){ 21 22 html += '<li data-id="'+item.term_id+'"><div class="item jstree-anchor"><span class="icon"></span><span class="item-containt">'+ 23 '<span class="folder-name">' + item.name + '</span></span></div></li>'; 24 25 }); 26 $('.themedo-mediamatic-container ul').html(html); 27 self.action(); 28 } 29 }, 30 31 32 action: function(){ 33 $('.themedo-mediamatic-container .item').on('click', function(){ 34 $('.themedo-mediamatic-container .item').removeClass('active'); 35 $(this).addClass('active'); 36 }); 37 $('.themedo-mediamatic-container .item').on('dblclick', function(){ 38 var folder_id = $(this).parent().data('id'); 39 $('#menu-item-' + folder_id + ' .jstree-anchor').trigger('click'); 40 }); 41 42 $('.themedo-mediamatic-container .item').on({ 43 mouseenter: function() { 44 var $this = $(this); 45 var parentWidth = $this.find('.item-containt').innerWidth(); 46 var childWidth = $this.find('.folder-name').innerWidth(); 47 var title = $this.find('.folder-name').text(); 48 if (parentWidth < (childWidth + 16) ) { 49 $this.tooltip({ 50 title: title, 51 placement: "bottom", 52 }); 53 54 $this.tooltip('show'); 55 } 56 }, 57 58 mouseleave: function() { 59 var $this = $(this); 60 $this.tooltip('hide'); 61 } 62 }); 63 } 64 65 }; 7 66 8 67 -
mediamatic/trunk/inc/interface.php
r2161922 r2307005 174 174 ); 175 175 176 // Custom Scripts177 wp_enqueue_script( 'mediamatic-folder-in-content', MEDIAMATIC_ASSETS_URL . 'js/folder-in-content.js', array( 'jquery' ), $this->version, false );178 179 180 176 wp_enqueue_script( 'mediamatic-upload', MEDIAMATIC_ASSETS_URL . 'js/mediamatic-upload.js', array( 'jquery' ), $this->version, false ); 181 177 wp_enqueue_script( 'mediamatic-folder', MEDIAMATIC_ASSETS_URL . 'js/folder.js', array( 'jquery' ), $this->version, false ); -
mediamatic/trunk/mediamatic.php
r2297086 r2307005 4 4 * Plugin URI: http://mediamatic.frenify.com/1/ 5 5 * Description: Get organized with thousands of images. Organize media into folders. 6 * Version: 1.96 * Version: 2.0 7 7 * Author: plugincraft 8 8 * Author URI: http://mediamatic.frenify.com/1/ … … 39 39 define( 'MEDIAMATIC__FILE__', __FILE__ ); 40 40 define( 'MEDIAMATIC_FOLDER', 'mediamatic_wpfolder' ); 41 define( 'MEDIAMATIC_VERSION', ' 1.8' );41 define( 'MEDIAMATIC_VERSION', '2.0' ); 42 42 define( 'MEDIAMATIC_PATH', plugin_dir_path( MEDIAMATIC__FILE__ ) ); 43 43 define( 'MEDIAMATIC_URL', plugins_url( '/', MEDIAMATIC__FILE__ ) ); -
mediamatic/trunk/readme.txt
r2297086 r2307005 95 95 == Changelog == 96 96 97 = 2.0 - May 18, 2020 = 98 - Fixed: Javascript undefined issue 99 97 100 = 1.9 - May 03, 2020 = 98 101 - Improved: Some javascript files
Note: See TracChangeset
for help on using the changeset viewer.