app/views/alchemy/admin/pages/update.js.erb in alchemy_cms-6.0.7 vs app/views/alchemy/admin/pages/update.js.erb in alchemy_cms-6.0.8

- old
+ new

@@ -16,10 +16,10 @@ }); <% else -%> if (page) { - var page_html = "<%= j render('page', page: @page) %>"; + var page_html = "<%= j render('page', page: @page) %>".replace(/__ID__/g, "<%= @page.id %>");; var compiler = Handlebars.compile(page_html); var tree = <%== @tree.to_json %>; page.outerHTML = compiler(tree.pages[0]); Alchemy.growl("<%= j @notice %>"); Alchemy.closeCurrentDialog();