// BugFix on blocklayered and sliders

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10836 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2011-12-01 15:49:13 +00:00
parent 5f103766fc
commit 567c23dafc
3 changed files with 9 additions and 4 deletions
+6 -2
View File
@@ -237,12 +237,16 @@ function openCloseFilter()
});
}
function reloadContent(params_plus)
{
function stopAjaxQuery() {
for(i = 0; i < ajaxQueries.length; i++)
ajaxQueries[i].abort();
ajaxQueries = new Array();
}
function reloadContent(params_plus)
{
stopAjaxQuery();
if (!ajaxLoaderOn)
{
$('#product_list').prepend($('#layered_ajax_loader').html());
+2 -2
View File
@@ -2038,7 +2038,7 @@ class BlockLayered extends Module
case 'price':
if (isset($selectedFilters['price']))
{
if ($selectedFilters['price'][0] != 0 || $selectedFilters['price'][1] != 0)
if ($selectedFilters['price'][0] !== '' || $selectedFilters['price'][1] !== '')
{
$priceFilter = array();
$priceFilter['min'] = (float)($selectedFilters['price'][0]);
@@ -2162,7 +2162,7 @@ class BlockLayered extends Module
{
case 'price':
case 'weight':
if ($value[0] == '' && $value[1] == '')
if ($value[0] === '' && $value[1] === '')
unset($selectedFilters[$key]);
break;
default:
+1
View File
@@ -149,6 +149,7 @@ param_product_url = '';
max: {/literal}{$filter.max}{literal},
values: [ {/literal}{$filter.values[0]}{literal}, {/literal}{$filter.values[1]}{literal}],
slide: function( event, ui ) {
stopAjaxQuery();
$('#layered_{/literal}{$filter.type}{literal}_range').html(ui.values[ 0 ] + '{/literal}{$filter.unit}{literal}' + ' - ' + ui.values[ 1 ] + '{/literal}{$filter.unit}{literal}');
},
stop: function () {