Hide draft restore prompt on successful save (#52)

This commit is contained in:
Anna Sidwell 2018-04-16 11:01:52 +10:00
parent a41df71793
commit 15c3d3c4a2

View File

@ -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();
}