// Fix Bug with blocklayered and product ordering
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12846 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
a8491d1cc0
commit
a39ec10607
1 file changed
+9
-4
@@ -114,8 +114,13 @@ $(document).ready(function()
|
|||||||
$('.hide-action').each(function() {
|
$('.hide-action').each(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