| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | /*! |
| 2 | - * Filter Everything seo rules admin 1.6.1 | |
| 2 | + * Filter Everything widgets 1.9.7 | |
| 3 | 3 | */ |
| 4 | 4 | (function($) { |
| 5 | 5 | "use strict"; |
| 6 | 6 | |
| @@ -67,8 +67,17 @@ | ||
| 67 | 67 | }); |
| 68 | 68 | |
| 69 | 69 | $(document).on('widget-added widget-updated', function (){ |
| 70 | 70 | wpcMakeSortItemsSortable(); |
| 71 | + | |
| 72 | + $('.wpc-help-tip').tipTip({ | |
| 73 | + 'attribute': 'data-tip', | |
| 74 | + 'fadeIn': 50, | |
| 75 | + 'fadeOut': 50, | |
| 76 | + 'delay': 200, | |
| 77 | + 'keepAlive': true, | |
| 78 | + 'maxWidth': "220px", | |
| 79 | + }); | |
| 71 | 80 | }); |
| 72 | 81 | |
| 73 | 82 | $(document).on('focus', '.wpc-sorting-item-label', function (){ |
| 74 | 83 | let currentVal = $(this).val(); |
| @@ -78,9 +87,9 @@ | ||
| 78 | 87 | }); |
| 79 | 88 | |
| 80 | 89 | $(document).on('click', '.wpc-add-sorting-item', function (e){ |
| 81 | 90 | e.preventDefault(); |
| 82 | - let widgetContent = $(this).parents('.widget-content'); | |
| 91 | + let widgetContent = $(this).parents('.wpc-add-sorting-item-wrapper').parent(); //('.widget-content'); | |
| 83 | 92 | let sortingList = widgetContent.find('.wpc-sorting-list'); |
| 84 | 93 | let html = widgetContent.find('.wpc-new-sorting-item').html(); |
| 85 | 94 | let $el = $(html); |
| 86 | 95 | let label = $el.find('.wpc-sorting-item-title'); |