From f3ec70ebde50948d984632cc83c3425f833f48ca Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Thu, 6 Aug 2020 15:36:47 -0400 Subject: [PATCH] Remove deprecated submitOnce js function --- js/Common.js | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/js/Common.js b/js/Common.js index 88c8c44b8e..65b12c09bd 100644 --- a/js/Common.js +++ b/js/Common.js @@ -145,32 +145,6 @@ function showHideByValue(trigger_field_id, trigger_value, target_element_id, tar } var submitcount = 0; -/** - * Old submit-once function. Will be removed soon. - * @deprecated - */ -function submitOnce(obj, formId, procText) { - // if named button clicked, change text - if (obj.value != null) { - cj('input[name=' + obj.name + ']').val(procText + " ..."); - } - cj(obj).closest('form').attr('data-warn-changes', 'false'); - if (document.getElementById) { // disable submit button for newer browsers - cj('input[name=' + obj.name + ']').attr("disabled", true); - document.getElementById(formId).submit(); - return true; - } - else { // for older browsers - if (submitcount == 0) { - submitcount++; - return true; - } - else { - alert("Your request is currently being processed ... Please wait."); - return false; - } - } -} /** * Function to show / hide the row in optionFields -- 2.25.1