diff --git a/scripts/system/more/more.html b/scripts/system/more/more.html index 17ec1e7401..f483d24b3f 100644 --- a/scripts/system/more/more.html +++ b/scripts/system/more/more.html @@ -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; }); }