We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43eafbe commit b79180cCopy full SHA for b79180c
view/frontend/web/js/action/submit-filter.js
@@ -34,7 +34,8 @@ define(
34
35
return function (submitUrl, isChangeUrl) {
36
/** save active state */
37
- var actives = [];
+ var actives = [],
38
+ data;
39
$('.filter-options-item').each(function (index) {
40
if ($(this).hasClass('active')) {
41
actives.push($(this).attr('attribute'));
@@ -50,10 +51,10 @@ define(
50
51
window.history.pushState({url: submitUrl}, '', submitUrl);
52
}
53
- if (typeof isChangeUrl === 'object'){
54
- var data = '{}';
+ if (isChangeUrl){
55
+ data = '{}';
56
}else{
- var data = JSON.stringify({'mp_layer': 1});
57
+ data = JSON.stringify({'mp_layer': 1});
58
59
60
return storage.post(submitUrl, data).done(
0 commit comments