]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1576149 - 'Save changes' button disabled after submitting changes which get rejec...
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 28 Aug 2019 21:51:33 +0000 (17:51 -0400)
committerGitHub <noreply@github.com>
Wed, 28 Aug 2019 21:51:33 +0000 (17:51 -0400)
extensions/BugModal/web/bug_modal.js

index 0d77b1b29b95e2d1178a6b9c9dde25bbb4a5039a..eedb8bbe5dbe9ebb2882d2b8c7ac7d3f7f8009ca 100644 (file)
@@ -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 => {