// Changing Typo preserving backward compatibility
This commit is contained in:
@@ -123,7 +123,7 @@ $(document).ready(function()
|
||||
hideFilterValueAction(this);
|
||||
});
|
||||
|
||||
// To be sure there is no other events attached to the selectPrductSort, change the ID
|
||||
// To be sure there is no other events attached to the selectProductSort, change the ID
|
||||
var id = 1;
|
||||
while ($('#selectPrductSort').length) { // Because ids are duplicated
|
||||
// Unbind event change on #selectPrductSort
|
||||
@@ -134,8 +134,18 @@ $(document).ready(function()
|
||||
$('label[for=selectPrductSort]').attr('for', 'selectPrductSort'+id);
|
||||
id++;
|
||||
}
|
||||
|
||||
while ($('#selectProductSort').length) { // Because ids are duplicated
|
||||
// Unbind event change on #selectProductSort
|
||||
$('#selectProductSort').unbind('change');
|
||||
$('#selectProductSort').attr('onchange', '');
|
||||
$('#selectProductSort').addClass('selectProductSort');
|
||||
$('#selectProductSort').attr('id', 'selectProductSort'+id);
|
||||
$('label[for=selectProductSort]').attr('for', 'selectProductSort'+id);
|
||||
id++;
|
||||
}
|
||||
|
||||
// Since 1.5, event is add to .selectProductSort and not to #selectPrductSort
|
||||
// Since 1.5, event is add to .selectProductSort and not to #selectProductSort
|
||||
setTimeout(function() {
|
||||
$('.selectProductSort').unbind('change');
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user