1var leaveHistory = jQuery('#js_leave_History').val(); 2 3jQuery(function() { 4 5 ChangeButton(leaveHistory); 6 CautionChange(leaveHistory); 7 8}); 9 10function ChangeButton(leaveHistory) { 11 var buttondiv = jQuery("#itemHistoryButton"); 12 var buttonspan; 13 /* 14 if (leaveHistory == 1) { 15 buttondiv.find("a").remove(); 16 buttonspan = jQuery("<a href=\"javascript:void(0);\" class=\"item_history_link_\">ððc·</a>"); 17 buttonspan.bind("click", DisplayCookie); 18 } 19 else { 20 buttondiv.find("a").remove(); 21 buttonspan = jQuery("<a href=\"javascript:void(0);\" class=\"item_history_link_\">ððc³È¢</a>"); 22 buttonspan.bind("click", DestroyCookie); 23 } 24 25 buttondiv.html(buttonspan.css({ cursor: "pointer" })); 26 */ 27 28} 29 30function CautionChange(leaveHistory) { 31 var itemHistory = ""; 32 33 jQuery("#historyCaution").css({ display: "block" }); 34 35 jQuery.ajax({ 36 async: false, 37 type: "POST", 38 url: EC_WWW_ROOT + "/shop/goods/ajaxitemhistory.aspx", 39 cache: false, 40 dataType: "text", 41 success: function(data){ 42 itemHistory = data.replace("\r\n",""); 43 44 if (leaveHistory == 0) { 45 jQuery("#messRedraw").css({ display: "none" }); 46 jQuery("#messNothing").css({ display: "block" }); 47 48 if (itemHistory == "True") { 49 jQuery("#historyCaution").css({ display: "none" }); 50 } 51 52 } 53 else { 54 jQuery("#messRedraw").css({ display: "block" }); 55 jQuery("#messNothing").css({ display: "none" }); 56 } 57 } 58 }); 59 60} 61 62function DisplayCookie(event) { 63 64 jQuery.ajax({ 65 type: "POST", 66 url: EC_WWW_ROOT + "/shop/goods/ajaxhistorycookie.aspx", 67 cache: false 68 }); 69 70 jQuery("#itemHistory").slideToggle("fast", function() { 71 72 CautionChange(0); 73 74 ChangeButton(0); 75 jQuery("#itemHistory").slideToggle("fast"); 76 }); 77 78} 79 80function DestroyCookie(event) { 81 var historydiv = jQuery("#itemHistoryDetail"); 82 83 jQuery.ajax({ 84 type: "POST", 85 url: EC_WWW_ROOT + "/shop/goods/ajaxhistorycookie.aspx", 86 cache: false 87 }); 88 89 jQuery("#itemHistory").slideToggle("fast", function() { 90 historydiv.html(""); 91 92 CautionChange(1); 93 94 ChangeButton(1); 95 jQuery("#itemHistory").slideToggle("fast"); 96 }); 97 98}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.