Changeset 2231119
- Timestamp:
- 01/21/2020 05:45:57 PM (6 years ago)
- Location:
- wp-search-category-admin
- Files:
-
- 2 edited
- 6 copied
-
tags/1.5.1 (copied) (copied from wp-search-category-admin/trunk)
-
tags/1.5.1/README.md (copied) (copied from wp-search-category-admin/trunk/README.md) (1 diff)
-
tags/1.5.1/admin (copied) (copied from wp-search-category-admin/trunk/admin)
-
tags/1.5.1/js/script.js (copied) (copied from wp-search-category-admin/trunk/js/script.js) (5 diffs)
-
tags/1.5.1/views (copied) (copied from wp-search-category-admin/trunk/views)
-
tags/1.5.1/wp-search-cat-admin.php (copied) (copied from wp-search-category-admin/trunk/wp-search-cat-admin.php)
-
trunk/README.md (modified) (1 diff)
-
trunk/js/script.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-search-category-admin/tags/1.5.1/README.md
r2231088 r2231119 4 4 Requires at least: 4.0 5 5 Tested up to: 5.3 6 Stable tag: 1.5 6 Stable tag: 1.5.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
wp-search-category-admin/tags/1.5.1/js/script.js
r2231084 r2231119 1 1 (function( $ ){ 2 $(window).load(function(){3 adminSearch.init();4 });5 6 2 var adminSearch = { 7 3 isQuickEditPage: false, … … 16 12 $.expr[':'].Contains = function(a, i, m) { 17 13 return $(a).text().toUpperCase() 18 .indexOf(m[3].toUpperCase()) >= 0;14 .indexOf(m[3].toUpperCase()) >= 0; 19 15 }; 20 16 21 this.isGutenberg = (typeof wp.element !== 'undefined');22 17 // Can edit in post edit page or in quick edit 23 18 this.isQuickEditPage = $('.quick-edit-row').length > 0; … … 29 24 this.initQuickEdit(); 30 25 } else { 31 if (!this.isGutenberg) { 32 this.initEditPage(); 33 } 26 this.initEditPage(); 34 27 } 35 28 }, … … 49 42 var listTaxonomies = this.getListTaxonomies(); 50 43 51 listTaxonomies.forEach(function (taxonomy) { 52 var searchBox = globalObject.getSearchBox(taxonomy); 53 var divIdToInject = 'taxonomy-' + taxonomy; 54 var nameSearchField = globalObject.getNameSearchField() + taxonomy; 44 setTimeout(function() { 45 listTaxonomies.forEach(function (taxonomy) { 46 var searchBox = globalObject.getSearchBox(taxonomy); 47 var divIdToInject = 'taxonomy-' + taxonomy; 48 var nameSearchField = globalObject.getNameSearchField() + taxonomy; 55 49 56 $('#' + divIdToInject).prepend(searchBox); 57 globalObject.initSearch($('#'+ nameSearchField), false); 58 }); 50 $('#' + divIdToInject).prepend(searchBox); 51 globalObject.initSearch($('#'+ nameSearchField), false); 52 }); 53 }, 800); 59 54 }, 60 55 … … 129 124 } 130 125 }; 126 $(window).load(function(){ 127 adminSearch.init(); 128 }); 129 130 131 131 })( jQuery ); -
wp-search-category-admin/trunk/README.md
r2231088 r2231119 4 4 Requires at least: 4.0 5 5 Tested up to: 5.3 6 Stable tag: 1.5 6 Stable tag: 1.5.1 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
wp-search-category-admin/trunk/js/script.js
r2231084 r2231119 1 1 (function( $ ){ 2 $(window).load(function(){3 adminSearch.init();4 });5 6 2 var adminSearch = { 7 3 isQuickEditPage: false, … … 16 12 $.expr[':'].Contains = function(a, i, m) { 17 13 return $(a).text().toUpperCase() 18 .indexOf(m[3].toUpperCase()) >= 0;14 .indexOf(m[3].toUpperCase()) >= 0; 19 15 }; 20 16 21 this.isGutenberg = (typeof wp.element !== 'undefined');22 17 // Can edit in post edit page or in quick edit 23 18 this.isQuickEditPage = $('.quick-edit-row').length > 0; … … 29 24 this.initQuickEdit(); 30 25 } else { 31 if (!this.isGutenberg) { 32 this.initEditPage(); 33 } 26 this.initEditPage(); 34 27 } 35 28 }, … … 49 42 var listTaxonomies = this.getListTaxonomies(); 50 43 51 listTaxonomies.forEach(function (taxonomy) { 52 var searchBox = globalObject.getSearchBox(taxonomy); 53 var divIdToInject = 'taxonomy-' + taxonomy; 54 var nameSearchField = globalObject.getNameSearchField() + taxonomy; 44 setTimeout(function() { 45 listTaxonomies.forEach(function (taxonomy) { 46 var searchBox = globalObject.getSearchBox(taxonomy); 47 var divIdToInject = 'taxonomy-' + taxonomy; 48 var nameSearchField = globalObject.getNameSearchField() + taxonomy; 55 49 56 $('#' + divIdToInject).prepend(searchBox); 57 globalObject.initSearch($('#'+ nameSearchField), false); 58 }); 50 $('#' + divIdToInject).prepend(searchBox); 51 globalObject.initSearch($('#'+ nameSearchField), false); 52 }); 53 }, 800); 59 54 }, 60 55 … … 129 124 } 130 125 }; 126 $(window).load(function(){ 127 adminSearch.init(); 128 }); 129 130 131 131 })( jQuery );
Note: See TracChangeset
for help on using the changeset viewer.