Version Description
Download this release
Release Info
Developer | adampickering |
Plugin | Regions for WP Job Manager |
Version | 1.14.0 |
Comparing to | |
See all releases |
Code changes from version 1.12.1 to 1.14.0
- assets/js/main.js +89 -75
- languages/wp-job-manager-locations.pot +5 -5
- readme.txt +13 -5
- wp-job-manager-locations.php +2 -2
assets/js/main.js
CHANGED
@@ -1,78 +1,92 @@
|
|
1 |
(function($) {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
})(jQuery);
|
1 |
(function($) {
|
2 |
+
'use strict';
|
3 |
+
|
4 |
+
var jobRegions = {
|
5 |
+
cache: {
|
6 |
+
$document: $(document),
|
7 |
+
$window: $(window),
|
8 |
+
},
|
9 |
+
|
10 |
+
init: function() {
|
11 |
+
this.bindEvents();
|
12 |
+
},
|
13 |
+
|
14 |
+
bindEvents: function() {
|
15 |
+
var self = this;
|
16 |
+
|
17 |
+
this.cache.$document.on( 'ready', function() {
|
18 |
+
self.$forms = $( '.search_jobs' );
|
19 |
+
|
20 |
+
self.addSubmission();
|
21 |
+
self.addRegions();
|
22 |
+
self.updateResults();
|
23 |
+
self.resetResults();
|
24 |
+
});
|
25 |
+
},
|
26 |
+
|
27 |
+
addSubmission: function() {
|
28 |
+
$( '#job_region, #resume_region' ).chosen({
|
29 |
+
search_contains: true
|
30 |
+
});
|
31 |
+
},
|
32 |
+
|
33 |
+
addRegions: function() {
|
34 |
+
this.$forms.each(function(i, el) {
|
35 |
+
var wrapper = false;
|
36 |
+
var $regions = $(el).find( 'select.search_region' );
|
37 |
+
|
38 |
+
// Grab Listify's wrapper element.
|
39 |
+
if ( $regions.parent().hasClass( 'select' ) ) {
|
40 |
+
wrapper = true;
|
41 |
+
$regions = $regions.parent();
|
42 |
+
}
|
43 |
+
|
44 |
+
if ( ! $regions.length ) {
|
45 |
+
return;
|
46 |
+
}
|
47 |
+
|
48 |
+
var location = $(el).find( '.search_location' );
|
49 |
+
location.html( '' );
|
50 |
+
location.removeClass( 'search_location' ).addClass( 'search_region' );
|
51 |
+
|
52 |
+
$regions.detach().appendTo(location);
|
53 |
+
|
54 |
+
var args = {
|
55 |
+
search_contains: true
|
56 |
+
};
|
57 |
+
|
58 |
+
if ( ! wrapper ) {
|
59 |
+
$regions.chosen( args );
|
60 |
+
} else {
|
61 |
+
$regions.children( 'select' ).chosen( args );
|
62 |
+
}
|
63 |
+
});
|
64 |
+
},
|
65 |
+
|
66 |
+
updateResults: function() {
|
67 |
+
this.$forms.each(function(i, el) {
|
68 |
+
var region = $(this).find( '.search_region' );
|
69 |
+
|
70 |
+
region.on( 'change', function() {
|
71 |
+
var target = $(this).closest( 'div.job_listings' );
|
72 |
+
|
73 |
+
target.trigger( 'update_results', [ 1, false ] );
|
74 |
+
});
|
75 |
+
});
|
76 |
+
},
|
77 |
+
|
78 |
+
resetResults: function() {
|
79 |
+
var self = this;
|
80 |
+
|
81 |
+
$( '.job_listings' ).on( 'reset', function() {
|
82 |
+
self.$forms.each(function(i, el) {
|
83 |
+
var $regions = $(el).find( 'select.search_region' );
|
84 |
+
$regions.val(0).trigger( 'change' ).trigger( 'chosen:updated' );
|
85 |
+
});
|
86 |
+
});
|
87 |
+
}
|
88 |
+
};
|
89 |
+
|
90 |
+
jobRegions.init();
|
91 |
|
92 |
})(jQuery);
|
languages/wp-job-manager-locations.pot
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
# Copyright (C) 2017 Astoundify
|
2 |
-
# This file is distributed under the same license as the WP Job Manager
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WP Job Manager
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-locations\n"
|
8 |
-
"POT-Creation-Date: 2017-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
-
"X-Generator: grunt-wp-
|
16 |
|
17 |
#: includes/class-taxonomy.php:17 includes/class-template.php:74
|
18 |
msgid "Job Region"
|
@@ -111,7 +111,7 @@ msgid "in %s"
|
|
111 |
msgstr ""
|
112 |
|
113 |
#. Plugin Name of the plugin/theme
|
114 |
-
msgid "WP Job Manager
|
115 |
msgstr ""
|
116 |
|
117 |
#. Plugin URI of the plugin/theme
|
1 |
# Copyright (C) 2017 Astoundify
|
2 |
+
# This file is distributed under the same license as the Regions for WP Job Manager package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Regions for WP Job Manager 1.13.0\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/wp-job-manager-locations\n"
|
8 |
+
"POT-Creation-Date: 2017-04-12 14:12:52+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
+
"X-Generator: grunt-wp-i18n1.0.0\n"
|
16 |
|
17 |
#: includes/class-taxonomy.php:17 includes/class-template.php:74
|
18 |
msgid "Job Region"
|
111 |
msgstr ""
|
112 |
|
113 |
#. Plugin Name of the plugin/theme
|
114 |
+
msgid "Regions for WP Job Manager"
|
115 |
msgstr ""
|
116 |
|
117 |
#. Plugin URI of the plugin/theme
|
readme.txt
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
-
=== WP Job Manager
|
2 |
-
|
3 |
Author URI: http://astoundify.com
|
4 |
-
Plugin URI:
|
5 |
Donate link: https://www.paypal.me/astoundify
|
6 |
Contributors: Astoundify
|
7 |
Tags: job, job listing, job region
|
8 |
Requires at least: 4.7.0
|
9 |
-
Tested up to: 4.
|
10 |
-
Stable Tag: 1.
|
11 |
License: GPLv3
|
12 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
13 |
|
@@ -32,6 +31,15 @@ Astoundify has released two themes that are fully integrated with the WP Job Man
|
|
32 |
|
33 |
== Changelog ==
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
= 1.12.1: February 1, 2017 =
|
36 |
|
37 |
* Fix: Tested up to: WordPress 4.7.2
|
1 |
+
=== Regions for WP Job Manager ===
|
|
|
2 |
Author URI: http://astoundify.com
|
3 |
+
Plugin URI: https://astoundify.com/products/wp-job-manager-regions/
|
4 |
Donate link: https://www.paypal.me/astoundify
|
5 |
Contributors: Astoundify
|
6 |
Tags: job, job listing, job region
|
7 |
Requires at least: 4.7.0
|
8 |
+
Tested up to: 4.8.0
|
9 |
+
Stable Tag: 1.14.0
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
31 |
|
32 |
== Changelog ==
|
33 |
|
34 |
+
= 1.14.0: July 11, 2017 =
|
35 |
+
|
36 |
+
* New: Listify 2.0+ support.
|
37 |
+
|
38 |
+
= 1.13.0: April 12, 2017 =
|
39 |
+
|
40 |
+
* New: Update README.
|
41 |
+
* Fix: Update plugin strings.
|
42 |
+
|
43 |
= 1.12.1: February 1, 2017 =
|
44 |
|
45 |
* Fix: Tested up to: WordPress 4.7.2
|
wp-job-manager-locations.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name: WP Job Manager
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-job-manager-locations/
|
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.
|
9 |
* Text Domain: wp-job-manager-locations
|
10 |
* Domain Path: /languages
|
11 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: Regions for WP Job Manager
|
4 |
* Plugin URI: https://wordpress.org/plugins/wp-job-manager-locations/
|
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.14.0
|
9 |
* Text Domain: wp-job-manager-locations
|
10 |
* Domain Path: /languages
|
11 |
*/
|