PageSourceSearch

https://www.lsbio.fr/modules/mod_virtuemart_cart/assets/js/update_cart.js?vmver=55acd307

js lsbio.fr collected 2026-09-27 03:34:40 UTC 1,669 bytes, 44 lines download raw bytes

1if (typeof Virtuemart === "undefined")
2	var Virtuemart = {};
3
4jQuery(function($) {
5	Virtuemart.customUpdateVirtueMartCartModule = function(el, options){
6		var base 	= this;
7		base.el 	= $(".vmCartModule");
8		base.options 	= $.extend({}, Virtuemart.customUpdateVirtueMartCartModule.defaults, options);
9
10		base.init = function(){
11			$.ajaxSetup({ cache: false })
12			$.getJSON(Virtuemart.vmSiteurl + "index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json" + Virtuemart.vmLang,
13				function (datas, textStatus) {
14					base.el.each(function( index ,  module ) {
15						if (datas.totalProduct > 0) {
16							$(module).find(".vm_cart_products").html("");
17							$.each(datas.products, function (key, val) {
18								//$("#hiddencontainer .vmcontainer").clone().appendTo(".vmcontainer .vm_cart_products");
19								$(module).find(".hiddencontainer .vmcontainer .product_row").clone().appendTo( $(module).find(".vm_cart_products") );
20								$.each(val, function (key, val) {
21									$(module).find(".vm_cart_products ." + key).last().html(val);
22								});
23							});
24						}
25						$(module).find(".show_cart").html(		datas.cart_show);
26						$(module).find(".total_products").html(	datas.totalProductTxt);
27						$(module).find(".total").html(		datas.billTotal);
28					});
29				}
30			);
31		};
32		base.init();
33	};
34	// Definition Of Defaults
35	Virtuemart.customUpdateVirtueMartCartModule.defaults = {
36		name1: 'value1'
37	};
38
39});
40
41jQuery(document).ready(function( $ ) {
42	$(document).off("updateVirtueMartCartModule","body",Virtuemart.customUpdateVirtueMartCartModule);
43	$(document).on("updateVirtueMartCartModule","body",Virtuemart.customUpdateVirtueMartCartModule);
44});

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.