Skip to content

Commit

Permalink
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 099d488 commit d9f800b
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 d9f800b

Please sign in to comment.