diff --git a/more/more.html b/more/more.html index 17ec1e7..f483d24 100644 --- a/more/more.html +++ b/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; }); }