Version Description
Download this release
Release Info
Developer | adampickering |
Plugin | Regions for WP Job Manager |
Version | 1.17.2 |
Comparing to | |
See all releases |
Code changes from version 1.17.1 to 1.17.2
- assets/js/main.js +10 -18
- readme.txt +1 -1
- wp-job-manager-locations.php +1 -1
assets/js/main.js
CHANGED
@@ -9,6 +9,10 @@
|
|
9 |
|
10 |
init: function() {
|
11 |
this.bindEvents();
|
|
|
|
|
|
|
|
|
12 |
},
|
13 |
|
14 |
bindEvents: function() {
|
@@ -30,13 +34,7 @@
|
|
30 |
search_contains: true,
|
31 |
} );
|
32 |
} else {
|
33 |
-
|
34 |
-
var select2_args = job_manager_select2_args;
|
35 |
-
select2_args['allowClear'] = true;
|
36 |
-
select2_args['minimumResultsForSearch'] = 10;
|
37 |
-
|
38 |
-
$( '#job_region, #resume_region' ).select2( select2_args );
|
39 |
-
}
|
40 |
}
|
41 |
},
|
42 |
|
@@ -72,17 +70,11 @@
|
|
72 |
$regions.children( 'select' ).chosen( args );
|
73 |
}
|
74 |
} else {
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
if ( ! wrapper ) {
|
81 |
-
$regions.select2( select2_args );
|
82 |
-
} else {
|
83 |
-
$regions.children( 'select' ).select2( select2_args );
|
84 |
-
}
|
85 |
-
}
|
86 |
}
|
87 |
});
|
88 |
},
|
9 |
|
10 |
init: function() {
|
11 |
this.bindEvents();
|
12 |
+
|
13 |
+
this.select2_args = job_manager_select2_args || {};
|
14 |
+
this.select2_args['allowClear'] = true;
|
15 |
+
this.select2_args['minimumResultsForSearch'] = 10;
|
16 |
},
|
17 |
|
18 |
bindEvents: function() {
|
34 |
search_contains: true,
|
35 |
} );
|
36 |
} else {
|
37 |
+
$( '#job_region, #resume_region' ).select2( this.select2_args );
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
},
|
40 |
|
70 |
$regions.children( 'select' ).chosen( args );
|
71 |
}
|
72 |
} else {
|
73 |
+
if ( ! wrapper ) {
|
74 |
+
$regions.select2( this.select2_args );
|
75 |
+
} else {
|
76 |
+
$regions.children( 'select' ).select2( this.select2_args );
|
77 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
});
|
80 |
},
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Contributors: Astoundify
|
|
6 |
Tags: job, job listing, job region
|
7 |
Requires at least: 4.7.0
|
8 |
Tested up to: 5.0.3
|
9 |
-
Stable Tag: 1.17.
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
6 |
Tags: job, job listing, job region
|
7 |
Requires at least: 4.7.0
|
8 |
Tested up to: 5.0.3
|
9 |
+
Stable Tag: 1.17.2
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
wp-job-manager-locations.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Create predefined regions/locations that job submissions can associate themselves with.
|
6 |
* Author: Astoundify
|
7 |
* Author URI: http://astoundify.com
|
8 |
-
* Version: 1.17.
|
9 |
* Text Domain: wp-job-manager-locations
|
10 |
* Domain Path: /languages
|
11 |
*/
|
5 |
* Description: Create predefined regions/locations that job submissions can associate themselves with.
|
6 |
* Author: Astoundify
|
7 |
* Author URI: http://astoundify.com
|
8 |
+
* Version: 1.17.2
|
9 |
* Text Domain: wp-job-manager-locations
|
10 |
* Domain Path: /languages
|
11 |
*/
|