1Startshop.Basket.Add = function($iItemID, $fQuantity, $sSiteID, $fCallback) { 2 $.post( 3 Startshop.Constants.MODULE_DIR + '/web/startshop/ajax/basket.php', 4 { 5 'Action': 'Add', 6 'Item': $iItemID, 7 'Quantity': $fQuantity, 8 'SiteID': $sSiteID 9 }, 10 function ($sResponse) { 11 if (Startshop.Functions.isFunction($fCallback)) 12 $fCallback($sResponse); 13 } 14 ); 15}; 16 17Startshop.Basket.Delete = function($iItemID, $sSiteID, $fCallback) { 18 $.post( 19 Startshop.Constants.MODULE_DIR + '/web/startshop/ajax/basket.php', 20 { 21 'Action': 'Delete', 22 'Item': $iItemID, 23 'SiteID': $sSiteID 24 }, 25 function ($sResponse) { 26 if (Startshop.Functions.isFunction($fCallback)) 27 $fCallback($sResponse); 28 } 29 ); 30}; 31 32Startshop.Basket.Update = function($sSiteID, $fCallback) { 33 $.post( 34 Startshop.Constants.MODULE_DIR + '/web/startshop/ajax/basket.php', 35 { 36 'Action': 'Update', 37 'SiteID': $sSiteID 38 }, 39 function ($sResponse) { 40 if (Startshop.Functions.isFunction($fCallback)) 41 $fCallback($sResponse); 42 } 43 ); 44}; 45 46Startshop.Basket.SetQuantity = function($iItemID, $fQuantity, $sSiteID, $fCallback) { 47 $.post( 48 Startshop.Constants.MODULE_DIR + '/web/startshop/ajax/basket.php', 49 { 50 'Action': 'SetQuantity', 51 'Quantity': $fQuantity, 52 'SiteID': $sSiteID 53 }, 54 function ($sResponse) { 55 if (Startshop.Functions.isFunction($fCallback)) 56 $fCallback($sResponse); 57 } 58 ); 59};
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.