// Blocklayered: Fix bug with product order select on 1.5

// Theme 1.5: Fix bug on change product order with the select on the bottom of the page
This commit is contained in:
mDeflotte
2012-07-09 12:41:38 +00:00
parent 9bd099bb3a
commit 389fddd46e
3 changed files with 24 additions and 12 deletions
+2 -2
View File
@@ -44,7 +44,7 @@
//<![CDATA[
$(document).ready(function()
{
$('#selectPrductSort').change(function()
$('.selectProductSort').change(function()
{
var requestSortProducts = '{$request}';
var splitData = $(this).val().split(':');
@@ -57,7 +57,7 @@ $(document).ready(function()
<form id="productsSortForm" action="{$request|escape:'htmlall':'UTF-8'}">
<p class="select">
<label for="selectPrductSort">{l s='Sort by'}</label>
<select id="selectPrductSort">
<select id="selectPrductSort" class="selectProductSort">
<option value="{$orderbydefault|escape:'htmlall':'UTF-8'}:{$orderwaydefault|escape:'htmlall':'UTF-8'}" {if $orderby eq $orderbydefault}selected="selected"{/if}>{l s='--'}</option>
{if !$PS_CATALOG_MODE}
<option value="price:asc" {if $orderby eq 'price' AND $orderway eq 'asc'}selected="selected"{/if}>{l s='Price: lowest first'}</option>