sr-npm 1.7.284 → 1.7.286
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/homePage.js +1 -6
- package/public/filterUtils.js +0 -1
package/package.json
CHANGED
package/pages/homePage.js
CHANGED
|
@@ -88,10 +88,6 @@ async function handleSearchInput(_$w) {
|
|
|
88
88
|
const searchByTitle=[{field: 'title', searchTerm: trimmedInput}];
|
|
89
89
|
const searchByCity=[{field: 'cityText', searchTerm: trimmedInput}];
|
|
90
90
|
|
|
91
|
-
// const fieldsToSearch = [
|
|
92
|
-
// { field: 'title', searchTerm: trimmedInput },
|
|
93
|
-
// { field: 'cityText', searchTerm: trimmedInput }
|
|
94
|
-
// ];
|
|
95
91
|
|
|
96
92
|
let filter = await getFilter(searchByTitle);
|
|
97
93
|
|
|
@@ -124,9 +120,8 @@ async function handleSearchInput(_$w) {
|
|
|
124
120
|
|
|
125
121
|
function handleSearch(searchInput) {
|
|
126
122
|
const trimmedInput = searchInput.trim();
|
|
127
|
-
|
|
128
123
|
if (trimmedInput) {
|
|
129
|
-
if(
|
|
124
|
+
if(searchByCityFlag){
|
|
130
125
|
location.to(`/positions?location=${trimmedInput}`);
|
|
131
126
|
}
|
|
132
127
|
else{
|