From: Kohei Yoshino Date: Wed, 28 Aug 2019 21:51:33 +0000 (-0400) Subject: Bug 1576149 - 'Save changes' button disabled after submitting changes which get rejec... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7977284fb6495edc0c00c76720ff6c4c0194a64;p=thirdparty%2Fbugzilla.git Bug 1576149 - 'Save changes' button disabled after submitting changes which get rejected and using Back button (e.g. bug summary too long) --- diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js index 0d77b1b29..eedb8bbe5 100644 --- a/extensions/BugModal/web/bug_modal.js +++ b/extensions/BugModal/web/bug_modal.js @@ -701,6 +701,12 @@ $(function() { }) .attr('disabled', false); + // re-enable the save buttons when the user goes back to the page due to any + // field error or mid-air collision + $(window).on('pageshow', function() { + $('.save-btn').attr('disabled', false); + }); + // cc toggle (follow/stop following) $('#cc-btn') .click(async event => {