Skip to content

Commit

Permalink
Merge pull request #2827 from tvdeyen/fix-element-create-reload-preview
Browse files Browse the repository at this point in the history
Reload preview window (again) after element create
  • Loading branch information
tvdeyen authored Apr 10, 2024
2 parents 099d488 + d9f800b commit 8fb247c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/alchemy/admin/elements/create.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

Alchemy.growl('<%= Alchemy.t(:successfully_added_element) %>');
Alchemy.closeCurrentDialog();
Alchemy.reloadPreview();

el = document.querySelector('#element_<%= @element.id %>');
el.focusElement();
Expand Down

0 comments on commit 8fb247c

Please sign in to comment.