1; 2(function (jQuery) { 3 4 jQuery.fn.updateVirtueMartCartModule = function (arg) { 5 6 var options = jQuery.extend({}, jQuery.fn.updateVirtueMartCartModule.defaults, arg); 7 8 return this.each(function () { 9 10 // Local Variables 11 var $this = jQuery(this); 12 13 jQuery.ajaxSetup({ cache: false }) 14 jQuery.getJSON(window.vmSiteurl + "index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json" + window.vmLang, 15 function (datas, textStatus) { 16 if (datas.totalProduct > 0) { 17 $this.find(".vm_cart_products").html(""); 18 jQuery.each(datas.products, function (key, val) { 19 //jQuery("#hiddencontainer .vmcontainer").clone().appendTo(".vmcontainer .vm_cart_products"); 20 jQuery("#hiddencontainer .vmcontainer").clone().appendTo(".vmCartModule .vm_cart_products"); 21 jQuery.each(val, function (key, val) { 22 if (jQuery("#hiddencontainer .vmcontainer ." + key)) $this.find(".vm_cart_products ." + key + ":last").html(val); 23 }); 24 }); 25 } 26 $this.find(".show_cart").html(datas.cart_show); 27 $this.find(".total_products").html(datas.totalProduct); 28 $this.find(".total").html(datas.billTotal); 29 $this.find(".cart_info").html(datas); 30 } 31 ); 32 }); 33 }; 34 35 // Definition Of Defaults 36 jQuery.fn.updateVirtueMartCartModule.defaults = { 37 name1: 'value1' 38 }; 39 40})(jQuery);
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.