1(function ($) { 2 var inputName = $('#inputElName').val(); 3 var siteName = $('#siteName').val(); 4 var formSubmitScript = $('#formSubmitScript').text(); 5 var formSubmitScriptRaw = $('#formSubmitScriptRaw').text(); 6 var executeFormSubmitScript = new Function(formSubmitScriptRaw); 7 8 var $inputEl = $("input[name=" + inputName + "]"); 9 var $formEl = $inputEl.closest('form'); 10 if ($inputEl.length == 0 || $formEl.length == 0) { 11 return; 12 } 13 14 $inputEl.click(function () { 15 $("input[type=submit]", $formEl).removeAttr("clicked"); 16 $(this).attr("clicked", "true"); 17 }); 18 19 if (siteName != "shell") { 20 if (formSubmitScript != null && formSubmitScript != '') 21 { 22 $formEl.on("submit", function () { 23 if ($inputEl.attr('clicked')) { 24 executeFormSubmitScript(); 25 } 26 }); 27 } 28 } 29})
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.