").attr("id","shortcutPopBasket").appendTo($(this).parent());$p.hover(function(){$(this).data("hover",1);},function(){$(this).data("hover",0);});}$p.fadeIn(300);$p.html("");$("
").addClass("preloader").appendTo($p);$.ajax({type:"post",url:AJAX_URL,data:{"_callAjaxMode":1,"_ext":"comOrder->modBasket->PopContent","_validation":"9cb83ded83a8324229e5ec1af2a87ce8","fld":$(this).attr("name"),"val":$(this).val(),},success:function(res){var c=res.substr(0, res.indexOf(","));$("#shortcutBasket>i").html(c);res=res.substr(res.indexOf(",")+1, res.length);$p.html(res);},});$(this).addClass("hover");});$(document).click(function(){if($("#shortcutBasket").data("hover"))return;if(!$("#shortcutPopBasket").length)return;if($("#shortcutPopBasket").data("hover"))return;$("#shortcutBasket").removeClass("hover");$("#shortcutPopBasket").remove();/*$("#shortcutPopBasket").fadeOut(300, function(){$(this).remove();});*/});});