// Fix Bug with blocklayered and product ordering
This commit is contained in:
1 parent
04a788a1e3
commit
a8b134cadf
1 file changed
+8
-3
@@ -115,7 +115,12 @@ $(document).ready(function()
|
|||||||
hideFilterValueAction(this);
|
hideFilterValueAction(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#selectPrductSort').live('change', function() {
|
// Unbind event change on #selectPrductSort
|
||||||
|
$('#selectPrductSort').unbind('change');
|
||||||
|
|
||||||
|
// To be sure there is no other events attached to the selectPrductSort, change the ID
|
||||||
|
$('#selectPrductSort').attr('id', 'selectPrductSort2');
|
||||||
|
$('#selectPrductSort2').live('change', function(event) {
|
||||||
reloadContent();
|
reloadContent();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -299,9 +304,9 @@ function reloadContent(params_plus)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if ($('#selectPrductSort').length)
|
if ($('#selectPrductSort2').length)
|
||||||
{
|
{
|
||||||
var splitData = $('#selectPrductSort').val().split(':');
|
var splitData = $('#selectPrductSort2').val().split(':');
|
||||||
data += '&orderby='+splitData[0]+'&orderway='+splitData[1];
|
data += '&orderby='+splitData[0]+'&orderway='+splitData[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user