$(document).ready(function(){
showBasketLine();
showBasketSmall();
$(".storeBuy a").click(showBasketLine);
});
$("html").click(function() {
if($(".basketSmallBox").is(":visible")){
$(".basketSmallBox").removeClass("shower").hide();
}
});
function showSmallBasket(event) {
if($(".basketSmallBox").is(":visible")){
$(".basketSmallBox").removeClass("shower").hide();
} else if ($(".basketSmallBox").is(":hidden")) {
showBasketSmall();
$(".basketSmallBox").addClass("shower").show();
event.stopPropagation();
}
}
function showBasketLine() {
$.ajax({
url: "/bitrix/templates/imperia.Pallet/include_areas/ajax.handler.php",
type: "GET",
cache: true,
timeout: 1000,
data: "block=basketLine",
dataType: "html",
success: function(data){
$('.basketLineBox').html(data)
}
});
}
function showBasketSmall() {
$.ajax({
url: "/bitrix/templates/imperia.Pallet/include_areas/ajax.handler.php",
type: "GET",
cache: true,
timeout: 1000,
data: "block=basketSmall",
dataType: "html",
success: function(data){
$('.basketSmallBox').html(data)
}
});
}
Не работает((