Hide draft restore prompt on successful save (#52)
This commit is contained in:
parent
a41df71793
commit
15c3d3c4a2
@ -525,6 +525,7 @@ function initDrafts() {
|
||||
if (response.ok) {
|
||||
button.switchStateSaveSuccess();
|
||||
$('#case-study-form').dirtyForms('setClean');
|
||||
document.querySelector('.draftprompt').style.display = "none"
|
||||
} else {
|
||||
button.switchStateSaveFailed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user