// Fix Bug with blocklayered and product ordering

This commit is contained in:
mDeflotte
2012-01-31 13:56:08 +00:00
parent 04a788a1e3
commit a8b134cadf
+9 -4
View File
@@ -114,8 +114,13 @@ $(document).ready(function()
$('.hide-action').each(function() {
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();
});
@@ -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];
}