Sha256: 833a360bb52af681a74094a1e13680b8bfec467de4c7dd09f908b8115febd367
Contents?: true
Size: 694 Bytes
Versions: 3
Compression:
Stored size: 694 Bytes
Contents
(function() { var $page; <% if @old_page_layout != @page.page_layout -%> Alchemy.ElementsWindow.reload(); Alchemy.growl('<%= j Alchemy.t(:page_layout_changed_notice) %>'); <% end -%> <% if @while_page_edit -%> Alchemy.reloadPreview(); $('#page_<%= @page.id %>_status').replaceWith('<%= j render("current_page", current_page: @page) %>'); <% else -%> var page_html = "<%= j render('page', page: @page) %>"; var compiler = Handlebars.compile(page_html); var tree = JSON.parse('<%== @tree.to_json %>'); var html = compiler(tree.pages[0]); $('#page_<%= @page.id %>').replaceWith(html); <% end -%> Alchemy.growl("<%= j @notice %>"); Alchemy.closeCurrentDialog(); })()
Version data entries
3 entries across 3 versions & 1 rubygems