From: Andrew Hunt Date: Thu, 6 Aug 2020 19:36:47 +0000 (-0400) Subject: Remove deprecated submitOnce js function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ffaf1fc371c879e6fb85c3a06836a077d0be41ef;p=civicrm-core.git Remove deprecated submitOnce js function --- diff --git a/js/Common.js b/js/Common.js index 88acc9ef4d..2474b11b56 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