'
$('body').append(html);
}
var height = $('body').outerHeight();
var width = $('body').outerWidth();
$('.ui-slider-handle').css('cursor','pointer');
$('#ajaxFilterLoading').css({
'width':'100%',
'height':'100%',
'position':'fixed',
'z-index':'10000000',
'top':'0',
'left':'0'
});
$('#ajaxFilterLoading .bg').css({
'background':'#000000',
'opacity':'0.15',
'width':'100%',
'height':'100%',
'position':'absolute',
'top':'0'
});
$('#ajaxFilterLoading>div:first').css({
'width': '100%',
'text-align': 'center',
'position': 'absolute',
'left': '0',
'top': '48%',
'font-size':'16px',
'z-index':'10',
'color':'#ffffff'
});
add_ajaxfilter();
});
/*DONOT EDIT THIS CODE*/
function sliderAjax(url) {
if (url == '' || url == '#')
return;
if (!active) {
active = true;
jQuery(function($) {
oldUrl = url;
$('#ajaxFilterLoading .bg').height('100%');
$('#ajaxFilterLoading').fadeIn(300);
try {
$('body').css('cursor', 'wait');
$.ajax({
url: url,
dataType: 'json',
type: 'post',
data: data,
success: function(data) {
if (data.viewpanel) {
if ($('.block-layered-nav')) {
$('.block-layered-nav').empty();
$('.block-layered-nav').append(data.viewpanel)
}
}
if (data.productlist) {
$('.category-products').empty();
$('.category-products').append(data.productlist)
}
var hist = url.split('?');
if(window.history && window.history.pushState){
window.history.pushState('GET', data.title, url);
}
$('body').find('.toolbar select').removeAttr('onchange');
$('#ajaxFilterLoading .bg').height('100%');
$('#ajaxFilterLoading').fadeOut(300);
$('body').css('cursor', 'default');
add_ajaxfilter();
}
})
} catch (e) {}
});
active = false
}
return false
}
//]]>
