Plugin Directory

Changeset 2307005


Ignore:
Timestamp:
05/18/2020 09:06:49 AM (6 years ago)
Author:
plugincraft
Message:

readme.txt

Location:
mediamatic/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mediamatic/trunk/assets/js/trigger-folder.js

    r2297086 r2307005  
    55(function ($) {
    66    "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    };
    766   
    867   
  • mediamatic/trunk/inc/interface.php

    r2161922 r2307005  
    174174        );
    175175       
    176         // Custom Scripts
    177         wp_enqueue_script( 'mediamatic-folder-in-content', MEDIAMATIC_ASSETS_URL . 'js/folder-in-content.js', array( 'jquery' ), $this->version, false );
    178        
    179 
    180176        wp_enqueue_script( 'mediamatic-upload', MEDIAMATIC_ASSETS_URL . 'js/mediamatic-upload.js', array( 'jquery' ), $this->version, false );
    181177        wp_enqueue_script( 'mediamatic-folder', MEDIAMATIC_ASSETS_URL . 'js/folder.js', array( 'jquery' ), $this->version, false );
  • mediamatic/trunk/mediamatic.php

    r2297086 r2307005  
    44 * Plugin URI:  http://mediamatic.frenify.com/1/
    55 * Description: Get organized with thousands of images. Organize media into folders.
    6  * Version:     1.9
     6 * Version:     2.0
    77 * Author:      plugincraft
    88 * Author URI:  http://mediamatic.frenify.com/1/
     
    3939define( 'MEDIAMATIC__FILE__', __FILE__ );
    4040define( 'MEDIAMATIC_FOLDER', 'mediamatic_wpfolder' );
    41 define( 'MEDIAMATIC_VERSION', '1.8' );
     41define( 'MEDIAMATIC_VERSION', '2.0' );
    4242define( 'MEDIAMATIC_PATH', plugin_dir_path( MEDIAMATIC__FILE__ ) );
    4343define( 'MEDIAMATIC_URL', plugins_url( '/', MEDIAMATIC__FILE__ ) );
  • mediamatic/trunk/readme.txt

    r2297086 r2307005  
    9595== Changelog ==
    9696
     97= 2.0 - May 18, 2020 =
     98- Fixed: Javascript undefined issue
     99
    97100= 1.9 - May 03, 2020 =
    98101- Improved: Some javascript files
Note: See TracChangeset for help on using the changeset viewer.