PageSourceSearch

https://gallagher.com/-/media/Themes/Corporate-Business/Corporate-…/Scripts/gallagher-form-mandatory-fields.js

js gallagher.com collected 2026-09-24 09:27:36 UTC 796 bytes, 19 lines download raw bytes

1$(document).ready(function () {
2	$('.sitecore-form form input[data-val-required], select[data-val-required], textarea[data-val-required]').each(function () {
3		var labeltext = $('label[for="' + this.id + '"]').text();
4		if (labeltext.indexOf("*") == -1) {
5			$('label[for="' + this.id + '"]').append(" *");
6		}
7	});
8
9	$(".sitecore-form input[type=submit]").click(function () {
10		// e.preventDefault();
11		var success = $(".sitecore-form form").valid();
12		if (success == true) {
13			// $(this).prop('disabled', true);
14			$(this).addClass("btn-submit");
15			$(this).after('<img id="loader" class="loader" src="../../images/loading-icon.gif" />');
16			// setTimeout(function() {$("#loader").hide();$(".sitecore-form input[type=submit]").removeClass("btn-submit");}, 15000)
17		}
18	});
19});

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.