Skip to content

Commit

Permalink
[7.1] Reload preview window (again) after element create
Browse files Browse the repository at this point in the history
This has been removed during refactoring the element editor
into a custom web-component in AlchemyCMS#2614

This restores the behavior.
  • Loading branch information
tvdeyen committed Apr 10, 2024
1 parent 8be4c3e commit 9aa4620
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 @@ -28,6 +28,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 9aa4620

Please sign in to comment.