Skip to content

Commit

Permalink
Do not run JS on visiting the page currently being edited
Browse files Browse the repository at this point in the history
  • Loading branch information
mamhoff committed Mar 29, 2021
1 parent a98d536 commit 7b9aade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/pages/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<script type="text/javascript" charset="utf-8">

$(function() {
$('#unlock_page_form, #visit_page_form, #publish_page_form').on('submit', function(event) {
$('#unlock_page_form, #publish_page_form').on('submit', function(event) {
var not_dirty = Alchemy.checkPageDirtyness(this);
if (!not_dirty) Alchemy.pleaseWaitOverlay(false);
return not_dirty;
Expand Down

0 comments on commit 7b9aade

Please sign in to comment.