[-] MO : #PNM-240 - Fix bug with blocklayered price filter on IE
This commit is contained in:
@@ -55,8 +55,14 @@ $(document).ready(function()
|
|||||||
{
|
{
|
||||||
if ($(this).attr('timeout_id'))
|
if ($(this).attr('timeout_id'))
|
||||||
window.clearTimeout($(this).attr('timeout_id'));
|
window.clearTimeout($(this).attr('timeout_id'));
|
||||||
|
|
||||||
|
// IE Hack, setTimeout do not acept the third parameter
|
||||||
|
var reference = this;
|
||||||
|
|
||||||
$(this).attr('timeout_id', window.setTimeout(function(it) {
|
$(this).attr('timeout_id', window.setTimeout(function(it) {
|
||||||
|
if (!$(it).attr('id'))
|
||||||
|
it = reference;
|
||||||
|
|
||||||
var filter = $(it).attr('id').replace(/^layered_(.+)_range_.*$/, '$1');
|
var filter = $(it).attr('id').replace(/^layered_(.+)_range_.*$/, '$1');
|
||||||
|
|
||||||
var value_min = parseInt($('#layered_'+filter+'_range_min').val());
|
var value_min = parseInt($('#layered_'+filter+'_range_min').val());
|
||||||
@@ -405,19 +411,26 @@ function reloadContent(params_plus)
|
|||||||
if ($.browser.msie) // Fix bug with IE8 and aliasing
|
if ($.browser.msie) // Fix bug with IE8 and aliasing
|
||||||
$('#product_list').css('filter', '');
|
$('#product_list').css('filter', '');
|
||||||
|
|
||||||
if ($(result.pagination).find('ul.pagination').length)
|
if (result.pagination.search(/[^\s]/) > 0) {
|
||||||
{
|
if ($(result.pagination).find('ul.pagination').length)
|
||||||
$('div#pagination').show();
|
{
|
||||||
$('ul.pagination').each(function () {
|
$('div#pagination').show();
|
||||||
$(this).replaceWith($(result.pagination).find('ul.pagination'));
|
$('ul.pagination').each(function () {
|
||||||
});
|
$(this).replaceWith($(result.pagination).find('ul.pagination'));
|
||||||
}
|
});
|
||||||
else if (!$('ul.pagination').length)
|
}
|
||||||
{
|
else if (!$('ul.pagination').length)
|
||||||
$('div#pagination').show();
|
{
|
||||||
$('div#pagination').each(function () {
|
$('div#pagination').show();
|
||||||
$(this).html($(result.pagination));
|
$('div#pagination').each(function () {
|
||||||
});
|
$(this).html($(result.pagination));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$('ul.pagination').html('');
|
||||||
|
$('div#pagination').hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ param_product_url = '';
|
|||||||
<span class="layered_{$filter.type}_range_unit">{$filter.unit}</span>
|
<span class="layered_{$filter.type}_range_unit">{$filter.unit}</span>
|
||||||
{l s='to' mod='blocklayered'} <input class="layered_{$filter.type}_range layered_input_range_max layered_input_range" id="layered_{$filter.type}_range_max" type="text" value="{$filter.values[1]}"/>
|
{l s='to' mod='blocklayered'} <input class="layered_{$filter.type}_range layered_input_range_max layered_input_range" id="layered_{$filter.type}_range_max" type="text" value="{$filter.values[1]}"/>
|
||||||
<span class="layered_{$filter.type}_range_unit">{$filter.unit}</span>
|
<span class="layered_{$filter.type}_range_unit">{$filter.unit}</span>
|
||||||
<span class="layered_{$filter.type}_format">{$filter.format}</span>
|
<span class="layered_{$filter.type}_format" style="display:none;">{$filter.format}</span>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
{literal}
|
{literal}
|
||||||
$('#layered_{/literal}{$filter.type}{literal}_range_min').attr('limitValue', {/literal}{$filter.min}{literal});
|
$('#layered_{/literal}{$filter.type}{literal}_range_min').attr('limitValue', {/literal}{$filter.min}{literal});
|
||||||
|
|||||||
Reference in New Issue
Block a user