Changeset 1680976
- Timestamp:
- 06/19/2017 09:53:22 AM (9 years ago)
- Location:
- select-all-terms/trunk
- Files:
-
- 3 edited
-
js/select-all-terms.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
select-all-terms.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
select-all-terms/trunk/js/select-all-terms.js
r804396 r1680976 2 2 * Adds a button to select all / de-select all hierarchy terms under taxonomy hierarchy metabox 3 3 */ 4 4 5 window.SAT_LABELS = window.SAT_LABELS || {}; 5 6 6 7 (function( $ ) { … … 14 15 var tax_name = tax_id.replace("taxonomy-", ""); 15 16 $('#'+ tax_name +'-adder') 16 .prepend('<p><input type="button" data-tsl-tax="'+ tax_name +'" class="button tsl-select" value="'+ labels.select +'"><input type="button" data-tsl-tax="'+ tax_name +'" class="button tsl-deselect" value="'+ labels.deselect +'"></p>');17 .prepend('<p><input type="button" data-tsl-tax="'+ tax_name +'" class="button tsl-select" value="'+ SAT_LABELS.select +'"><input type="button" data-tsl-tax="'+ tax_name +'" class="button tsl-deselect" value="'+ SAT_LABELS.deselect +'"></p>'); 17 18 18 19 }); -
select-all-terms/trunk/readme.txt
r1544807 r1680976 4 4 Tags: taxonomies, metabox, select all, terms 5 5 Requires at least: 3.5.1 6 Tested up to: 4. 6.17 Stable tag: 1.0. 26 Tested up to: 4.8 7 Stable tag: 1.0.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 == Changelog == 68 68 69 = 1.0.3 = 70 * Tested against WP version 4.8 71 * Fixed global JS var for label l10n. 72 69 73 = 1.0.2 = 70 74 * [GOMO](http://gomo.pt/) replaces geeThemes brand. -
select-all-terms/trunk/select-all-terms.php
r1544807 r1680976 15 15 * Plugin URI: http://www.gomo.pt/ 16 16 * Description: Add select all/deselect all buttons to taxonomies' metaboxes 17 * Version: 1.0. 217 * Version: 1.0.3 18 18 * Author: GOMO 19 19 * Author URI: http://twitter.com/wearegomo … … 65 65 class Select_All_Terms_by_Gomo { 66 66 67 protected $version = '1.0. 2';67 protected $version = '1.0.3'; 68 68 protected $plugin_slug = 'select-all-terms'; 69 69 … … 124 124 wp_enqueue_script( 'select-all-script', plugin_dir_url( __FILE__ ) . 'js/select-all-terms.js', array('jquery') ); 125 125 126 wp_localize_script( 'select-all-script', ' labels', array( 'select' => __('Select All', 'select-all-terms'), 'deselect' => __('Deselect All', 'select-all-terms') ) );126 wp_localize_script( 'select-all-script', 'SAT_LABELS', array( 'select' => __('Select All', 'select-all-terms'), 'deselect' => __('Deselect All', 'select-all-terms') ) ); 127 127 128 128 }
Note: See TracChangeset
for help on using the changeset viewer.