Changeset 2012107
- Timestamp:
- 01/14/2019 03:40:13 PM (7 years ago)
- Location:
- wp-job-manager-locations/trunk
- Files:
-
- 5 edited
-
assets/js/main.js (modified) (2 diffs)
-
includes/class-template.php (modified) (1 diff)
-
languages/wp-job-manager-locations.pot (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-job-manager-locations.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-job-manager-locations/trunk/assets/js/main.js
r1700422 r2012107 26 26 27 27 addSubmission: function() { 28 $( '#job_region, #resume_region' ).chosen({ 29 search_contains: true 30 }); 28 if ( typeof chosen === "function" ) { 29 $( '#job_region, #resume_region' ).chosen( { 30 search_contains: true, 31 } ); 32 } else { 33 $( '#job_region, #resume_region' ).select2( job_manager_select2_multiselect_args ); 34 } 31 35 }, 32 36 … … 56 60 }; 57 61 58 if ( ! wrapper ) { 59 $regions.chosen( args ); 62 if ( typeof chosen === "function" ) { 63 if ( ! wrapper ) { 64 $regions.chosen( args ); 65 } else { 66 $regions.children( 'select' ).chosen( args ); 67 } 60 68 } else { 61 $regions.children( 'select' ).chosen( args ); 69 if ( ! wrapper ) { 70 $regions.select2( job_manager_select2_multiselect_args ); 71 } else { 72 $regions.children( 'select' ).select2( job_manager_select2_multiselect_args ); 73 } 62 74 } 63 75 }); -
wp-job-manager-locations/trunk/includes/class-template.php
r1875771 r2012107 31 31 */ 32 32 public function wp_enqueue_scripts() { 33 wp_enqueue_script( 'job-regions', wp_job_manager_regions()->plugin_url . 'assets/js/main.js', array( 'jquery', 'chosen' ), 20140525, true ); 33 $deps = array( 'jquery' ); 34 35 if ( wp_script_is( 'chosen' ) ) { 36 $deps[] = 'chosen'; 37 } else { 38 $deps[] = 'select2'; 39 } 40 41 wp_enqueue_script( 'job-regions', wp_job_manager_regions()->plugin_url . 'assets/js/main.js', $deps, 20140525, true ); 34 42 } 35 43 -
wp-job-manager-locations/trunk/languages/wp-job-manager-locations.pot
r1874791 r2012107 1 # Copyright (C) 201 8Astoundify1 # Copyright (C) 2019 Astoundify 2 2 # This file is distributed under the same license as the Regions for WP Job Manager package. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Regions for WP Job Manager 1.1 5.0\n"5 "Project-Id-Version: Regions for WP Job Manager 1.16.0\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/wp-job-manager-locations\n" 8 "POT-Creation-Date: 201 8-05-14 14:40:00+00:00\n"8 "POT-Creation-Date: 2019-01-14 15:35:04+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "PO-Revision-Date: 201 8-MO-DA HO:MI+ZONE\n"12 "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: LANGUAGE <LL@li.org>\n" 15 15 "X-Generator: grunt-wp-i18n1.0.0\n" 16 16 17 #: includes/class-taxonomy.php:17 includes/class-template.php: 7417 #: includes/class-taxonomy.php:17 includes/class-template.php:82 18 18 msgid "Job Region" 19 19 msgstr "" … … 64 64 msgstr "" 65 65 66 #: includes/class-template.php: 5866 #: includes/class-template.php:66 67 67 msgid "Region" 68 68 msgstr "" 69 69 70 #: includes/class-template.php: 9470 #: includes/class-template.php:102 71 71 msgid "All Regions" 72 72 msgstr "" 73 73 74 #: includes/class-template.php:11 174 #: includes/class-template.php:119 75 75 msgid "Select Region" 76 76 msgstr "" -
wp-job-manager-locations/trunk/readme.txt
r1875771 r2012107 6 6 Tags: job, job listing, job region 7 7 Requires at least: 4.7.0 8 Tested up to: 4.9.69 Stable Tag: 1.1 5.18 Tested up to: 5.0.3 9 Stable Tag: 1.16.0 10 10 License: GPLv3 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 31 31 32 32 == Changelog == 33 34 = 1.16.0: January 14, 2018 = 35 36 * New: WP Job Manager 1.32.0 support. 33 37 34 38 = 1.15.1: May 16, 2018 = -
wp-job-manager-locations/trunk/wp-job-manager-locations.php
r1875771 r2012107 6 6 * Author: Astoundify 7 7 * Author URI: http://astoundify.com 8 * Version: 1.1 5.18 * Version: 1.16.0 9 9 * Text Domain: wp-job-manager-locations 10 10 * Domain Path: /languages
Note: See TracChangeset
for help on using the changeset viewer.