PageSourceSearch

https://www.by-the-sword.com/scripts/moco.UpsellModal.js?id=2026040600

js by-the-sword.com collected 2026-09-25 21:18:13 UTC 1,572 bytes, 42 lines download raw bytes

1$(document).ready(function () {
2	$("#upsell-modal-minicart-checkout-button, #upsell-modal-miniwish-move-all-to-cart").on("click", function () {
3		$("#upsell-modal").modal("hide");
4		$("#minicart-modal button").prop("disabled", true);
5		$("#minicart-modal button").css('cursor', 'wait');
6		$("#upsell-modal-wrap").hide();
7		$.minicart.showLoading("Loading Upsells");
8		$.ajax({
9			type: 'GET',
10			url: '/xmlpackage/moco.upsellmodal?disableTemplate=true',
11			success: function (data, status) {
12				var returnUrl = window.location.pathname + window.location.search;
13
14				$("#upsell-modal-wrap").html(data);
15				$("#minicart-modal").modal("hide");
16				$("#upsell-modal-wrap").show();
17				$.minicart.hideLoading();
18				$("#upsell-modal").modal("show");
19				$("#minicart-modal button").prop("disabled", false);
20				$("#minicart-modal button").css('cursor', 'default');
21
22				// Minicart - Checkout: on click
23				$('[id^="minicart-checkout-button"]').on('click', function () {
24					$('<input />')
25						.attr('type', 'hidden')
26						.attr('name', 'returnUrl')
27						.attr('value', returnUrl)
28						.appendTo('#minicart-form');
29
30					$('#minicart-form').submit();
31				});
32			},
33			error: function () {
34				$.minicart.hideLoading();
35				$("#minicart-modal button").prop("disabled", false);
36				$("#minicart-modal button").css('cursor', 'default');
37				$("#minicart-modal").modal("show");
38				window.location.href = "/shoppingcart.aspx?returnUrl=" + encodeURIComponent(window.location.pathname + window.location.search);
39			}
40		});
41	});
42});

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.