mirror of
https://github.com/AleziaKurdis/Overte-community-apps.git
synced 2025-04-05 04:39:55 +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) {
|
||||
seachedFieldsFilter.push(targeted);
|
||||
} else {
|
||||
seachedFieldsFilter = arrayRemove(seachedFieldsFilter, targeted);
|
||||
seachedFieldsFilter = removeElementFromArray(seachedFieldsFilter, targeted);
|
||||
}
|
||||
loadRecordsUpTo = NUMBER_OF_RECORDS_PER_LOAD;
|
||||
displaySearchFieldsFilter();
|
||||
doSearch();
|
||||
}
|
||||
|
||||
function arrayRemove(arr, value) {
|
||||
function removeElementFromArray(arr, value) {
|
||||
return arr.filter(function(ele){
|
||||
return ele != value;
|
||||
return ele !== value;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue