Merge pull request #592 from Captain-FLAM/patch-8

[*] MO : blocklayered : Supress unsuseful # at the end of URLs
This commit is contained in:
Gregory Roussac
2013-07-25 01:23:46 -07:00

View File

@@ -538,7 +538,7 @@ function getUrlParams()
function updateProductUrl()
{
// Adding the filters to URL product
if (typeof(param_product_url) != 'undefined') {
if (typeof(param_product_url) != 'undefined' && param_product_url != '' && param_product_url !='#') {
$.each($('ul#product_list li.ajax_block_product .product_img_link,'+
'ul#product_list li.ajax_block_product h3 a,'+
'ul#product_list li.ajax_block_product .product_desc a,'+
@@ -624,4 +624,4 @@ function blocklayeredFormatNumber(value, numberOfDecimal, thousenSeparator, virg
if (parseInt(numberOfDecimal) == 0)
return abs_val_string;
return abs_val_string + virgule + (deci_string > 0 ? deci_string : '00');
}
}