sr-npm 1.7.278 → 1.7.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pages/careersPage.js +5 -9
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -18,6 +18,7 @@ const {
|
|
|
18
18
|
let queryKeyWordVar;
|
|
19
19
|
let queryDepartmentVar;
|
|
20
20
|
let queryLocationVar;
|
|
21
|
+
let searchInputBlurredFirstTime=true;
|
|
21
22
|
async function careersPageOnReady(_$w,thisObject,queryParams) {
|
|
22
23
|
console.log("queryParams: ", queryParams);
|
|
23
24
|
const { page, keyWord, department, location } = queryParams;
|
|
@@ -163,8 +164,12 @@ function init(_$w) {
|
|
|
163
164
|
const debouncedSearch = debounce(()=>applyFilters(_$w), 400,thisObjectVar);
|
|
164
165
|
_$w('#searchInput').onInput(debouncedSearch);
|
|
165
166
|
_$w('#searchInput').onBlur(()=>{
|
|
167
|
+
if(searchInputBlurredFirstTime)
|
|
168
|
+
{
|
|
166
169
|
console.log("search input blurred");
|
|
167
170
|
_$w('#searchInput').focus();
|
|
171
|
+
searchInputBlurredFirstTime=false;
|
|
172
|
+
}
|
|
168
173
|
});
|
|
169
174
|
_$w('#dropdownDepartment, #dropdownLocation, #dropdownJobType').onChange(()=>applyFilters(_$w));
|
|
170
175
|
_$w('#resetFiltersButton, #clearSearch').onClick(()=>resetFilters(_$w));
|
|
@@ -179,15 +184,6 @@ function init(_$w) {
|
|
|
179
184
|
|
|
180
185
|
}
|
|
181
186
|
|
|
182
|
-
function onchangeSearchInput(_$w){
|
|
183
|
-
const debouncedSearch = debounce(()=>applyFilters(_$w), 400,thisObjectVar);
|
|
184
|
-
debouncedSearch();
|
|
185
|
-
_$w('#searchInput').focus();
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
console.log("onchangeSearchInput");
|
|
189
|
-
searchInputIsUsed=true;
|
|
190
|
-
}
|
|
191
187
|
|
|
192
188
|
async function applyFilters(_$w, skipUrlUpdate = false) {
|
|
193
189
|
console.log("applying filters");
|