mirror of
https://github.com/overte-org/community-apps.git
synced 2025-04-05 11:26:59 +02:00
Requested adjustments
This commit is contained in:
parent
fded4c8f0d
commit
a71fc9aec4
1 changed files with 3 additions and 3 deletions
|
@ -74,16 +74,16 @@
|
||||||
if (seachedFieldsFilter.indexOf(targeted) === -1) {
|
if (seachedFieldsFilter.indexOf(targeted) === -1) {
|
||||||
seachedFieldsFilter.push(targeted);
|
seachedFieldsFilter.push(targeted);
|
||||||
} else {
|
} else {
|
||||||
seachedFieldsFilter = arrayRemove(seachedFieldsFilter, targeted);
|
seachedFieldsFilter = removeElementFromArray(seachedFieldsFilter, targeted);
|
||||||
}
|
}
|
||||||
loadRecordsUpTo = NUMBER_OF_RECORDS_PER_LOAD;
|
loadRecordsUpTo = NUMBER_OF_RECORDS_PER_LOAD;
|
||||||
displaySearchFieldsFilter();
|
displaySearchFieldsFilter();
|
||||||
doSearch();
|
doSearch();
|
||||||
}
|
}
|
||||||
|
|
||||||
function arrayRemove(arr, value) {
|
function removeElementFromArray(arr, value) {
|
||||||
return arr.filter(function(ele){
|
return arr.filter(function(ele){
|
||||||
return ele != value;
|
return ele !== value;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue