PageSourceSearch

https://orders.samplerite.com/templates/SampleRite/js/jquery.AddUn…?v=234a8ad9-3be3-4d9c-a37b-efe73b956e04

js samplerite.com collected 2026-09-29 10:06:09 UTC 1,744 bytes, 1 lines download raw bytes

1(function(n){n.fn.addUnitSpecificLineToOrder=function(t){function f(){n(r).progressIndicator({mode:"indeterminate",func:"start"});n(window).trigger("addToOrderStarted")}function e(t){n(r).progressIndicator({mode:"indeterminate",func:"stop"});window.location.href.indexOf("trade/cart")!=-1&&i.reload==!0?location.reload():n(window).trigger("addToOrderSucceeded",[t])}function o(){n(r).progressIndicator({mode:"indeterminate",func:"stop"});window.location.href.indexOf("trade/cart")&&i.reload==!0?location.reload():n(window).trigger("addToOrderFailed");u("Add to basket failed")}function s(){n(r).progressIndicator({mode:"indeterminate",func:"stop"});n(window).trigger("addToOrderFailed");u("Customisation Info missing")}function u(n){alert(n)}var i={started:f,succeeded:e,failed:o,missing:s,productGuid:!1,quantity:1,unitOfSale:null,alternateName:null,reload:!1,customisation:null},r;return t&&n.extend(i,t),r=null,this.each(function(){var t,f,e,o,u;if(r=this,i.started(),n.isGuid(i.productGuid)||(t=n.locateContainer(this,"Aspidistra.Ecommerce.Catalogue.Product"),t!==!1&&(i.productGuid=t.data("item-id")),f=n(this).val(),f&&(i.quantity=f),e=t.find(".UnitOfSale"),e&&(i.unitOfSale=e.val()),o=t.find(".prodAlternativeName"),o.length>0&&(i.alternateName=o.val()),u=t.find(".CustomisationTextBox"),u.length>0&&u.val().length>0&&(i.customisation=u.val())),!n.isGuid(i.productGuid)){i.failed();return}i.customisation!=null&&i.customisation.length>0?Aspidistra.Ecommerce.Web.ScriptServices.SalesScriptService.AddCustomisableToOrder(i.productGuid,i.quantity,i.customisation,i.succeeded,i.failed):SampleRite.SampleRiteScriptService.AddUnitSpecificLineToOrder(i.productGuid,i.quantity,i.unitOfSale,i.alternateName,i.succeeded,i.failed)}),this}})(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.