Skip to content

Commit

Permalink
Better check for overlay display while dirtyness check
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas von Deyen committed Jan 30, 2012
1 parent c6b923a commit 38039b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/alchemy/admin/pages/edit.html.erb
Expand Up @@ -170,8 +170,9 @@
cancelLabel: '<%= t("No") %>'
};
$('#unlock_page_form, #visit_page_form, #publish_page_form').on('submit', function(event) {
Alchemy.pleaseWaitOverlay(false);
return Alchemy.checkPageDirtyness(this, texts);
var not_dirty = Alchemy.checkPageDirtyness(this, texts);
if (!not_dirty) Alchemy.pleaseWaitOverlay(false);
return not_dirty;
});
Alchemy.PageLeaveObserver(texts);
Alchemy.openElementsWindow();
Expand Down

0 comments on commit 38039b1

Please sign in to comment.