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) {
|
if (response.ok) {
|
||||||
button.switchStateSaveSuccess();
|
button.switchStateSaveSuccess();
|
||||||
$('#case-study-form').dirtyForms('setClean');
|
$('#case-study-form').dirtyForms('setClean');
|
||||||
|
document.querySelector('.draftprompt').style.display = "none"
|
||||||
} else {
|
} else {
|
||||||
button.switchStateSaveFailed();
|
button.switchStateSaveFailed();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user