Plugin Directory

Changeset 2297086


Ignore:
Timestamp:
05/03/2020 02:18:11 PM (6 years ago)
Author:
plugincraft
Message:

readme.txt

Location:
mediamatic/trunk
Files:
4 edited

Legend:

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

    r2161922 r2297086  
    1 var themedo_folder_in_content = {};
    21(function($){
    32    "use strict";
    43   
    5     themedo_folder_in_content.render = function(data){
     4    var folderInContent = {
     5       
     6        render: function(data){
     7           
     8            var self = this;
     9            var html = '';
    610
    7         var html = '';
     11            if(data.length && html !== ''){
    812
    9         if(data.length && html !== ''){
     13                var folder_container = '<div class="themedo-mediamatic-container"><ul></ul></div>';
     14                $('.attachments').before(folder_container);
     15                data.forEach(function(item){
    1016
    11             var folder_container = '<div class="themedo-mediamatic-container"><ul></ul></div>';
     17                    html += '<li data-id="'+item.term_id+'"><div class="item jstree-anchor"><span class="icon"></span><span class="item-containt">'+
     18                            '<span class="folder-name">' + item.name + '</span></span></div></li>';
    1219
    13             $('.attachments').before(folder_container);
    14 
    15             data.forEach(function(item){
    16 
    17                 html += '<li data-id="'+item.term_id+'"><div class="item jstree-anchor"><span class="icon"></span><span class="item-containt">'+
    18                         '<span class="folder-name">' + item.name + '</span></span></div></li>';
    19 
     20                });
     21                $('.themedo-mediamatic-container ul').html(html);
     22                self.action();
     23            }
     24        },
     25       
     26       
     27        action: function(){
     28            $('.themedo-mediamatic-container .item').on('click', function(){
     29                $('.themedo-mediamatic-container .item').removeClass('active');
     30                $(this).addClass('active');
     31            });
     32            $('.themedo-mediamatic-container .item').on('dblclick', function(){
     33                var folder_id = $(this).parent().data('id');
     34                $('#menu-item-' + folder_id + ' .jstree-anchor').trigger('click');
    2035            });
    2136
    22             $('.themedo-mediamatic-container ul').html(html);
     37            $('.themedo-mediamatic-container .item').on({
     38                mouseenter: function() {
     39                    var $this = $(this);
     40                    var parentWidth = $this.find('.item-containt').innerWidth();
     41                    var childWidth = $this.find('.folder-name').innerWidth();
     42                    var title =     $this.find('.folder-name').text();
     43                     if (parentWidth < (childWidth + 16) ) {
     44                         $this.tooltip({
     45                             title: title,
     46                             placement: "bottom",
     47                         });
    2348
    24             themedo_folder_in_content.action();
     49                         $this.tooltip('show');
     50                     }
     51                },
    2552
     53                mouseleave: function() {
     54                    var $this = $(this);
     55                    $this.tooltip('hide');
     56                }
     57            });
    2658        }
    2759       
    2860    };
    2961
    30     themedo_folder_in_content.action = function(){
    31         $('.themedo-mediamatic-container .item').on('click', function(){
    32             $('.themedo-mediamatic-container .item').removeClass('active');
    33            
    34             $(this).addClass('active');
    35         });
    36         $('.themedo-mediamatic-container .item').on('dblclick', function(){
    37             var folder_id = $(this).parent().data('id');
    38             $('#menu-item-' + folder_id + ' .jstree-anchor').trigger('click');
    39         });
    40 
    41         $('.themedo-mediamatic-container .item').on({
    42 
    43             mouseenter: function() {
    44                
    45                 var $this = $(this);
    46                 var parentWidth = $this.find('.item-containt').innerWidth();
    47                 var childWidth = $this.find('.folder-name').innerWidth();
    48                 var title =     $this.find('.folder-name').text();
    49                  if (parentWidth < (childWidth + 16) ) {
    50                    
    51                      $this.tooltip({
    52                          title: title,
    53                          placement: "bottom",
    54                      });
    55 
    56                      $this.tooltip('show');
    57 
    58                  }
    59 
    60             },
    61 
    62             mouseleave: function() {
    63 
    64                 var $this = $(this);
    65                 $this.tooltip('hide');
    66 
    67             }
    68 
    69         });
    70     };
    71    
    72 
    7362})(jQuery);
  • mediamatic/trunk/assets/js/trigger-folder.js

    r2288307 r2297086  
    411411        }).success(function (response) {
    412412
    413             themedo_folder_in_content.render(response.data);
     413            folderInContent.render(response.data);
    414414        });
    415415
  • mediamatic/trunk/mediamatic.php

    r2288307 r2297086  
    44 * Plugin URI:  http://mediamatic.frenify.com/1/
    55 * Description: Get organized with thousands of images. Organize media into folders.
    6  * Version:     1.8
     6 * Version:     1.9
    77 * Author:      plugincraft
    88 * Author URI:  http://mediamatic.frenify.com/1/
  • mediamatic/trunk/readme.txt

    r2288315 r2297086  
    9595== Changelog ==
    9696
     97= 1.9 - May 03, 2020 =
     98- Improved: Some javascript files
     99
    97100= 1.8 - April 21, 2020 =
    98101- Fixed: Uncategorize count issue is fixed
Note: See TracChangeset for help on using the changeset viewer.