[UPDT] BASE: Multiple values for key in savedFilters js method
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 30 KiB |
@@ -40,7 +40,14 @@ $(document).ready(function () {
|
||||
var formDataArray = filterForm.serializeArray();
|
||||
var filterData = {};
|
||||
formDataArray.forEach(function (item) {
|
||||
filterData[item.name] = item.value;
|
||||
if (filterData.hasOwnProperty(item.name)) {
|
||||
if (!Array.isArray(filterData[item.name])) {
|
||||
filterData[item.name] = [filterData[item.name]];
|
||||
}
|
||||
filterData[item.name].push(item.value);
|
||||
} else {
|
||||
filterData[item.name] = item.value;
|
||||
}
|
||||
});
|
||||
var filterDetails = {
|
||||
currentPath: currentPath,
|
||||
|
||||
Reference in New Issue
Block a user