localStorage.removeItem(key);
}
+ // Clear saved comment once the bug is successfully updated
+ if (document.querySelector('.change-summary[data-type="bug"]')) {
+ clearSavedBugComment();
+ }
+
function restoreSavedBugComment() {
expireSavedComments();
let key = `bug-modal-saved-comment-${BUGZILLA.bug_id}`;
.toArray()
.join(' ')
);
-
- clearSavedBugComment();
})
.attr('disabled', false);
[% Hook.process('title') %]
-<dl class="change-summary bug">
+<dl class="change-summary bug" data-type="[% type FILTER html %]">
<dt>[% title.$type %]</dt>
<dd>
[% PROCESS "bug/process/bugmail.html.tmpl" mailing_bugid = id %]