Sha256: f0b73570561cabd683815166789a313600ba26f0a28b5ab6cb764d31b9a225cc
Contents?: true
Size: 900 Bytes
Versions: 1
Compression:
Stored size: 900 Bytes
Contents
(function() { var page = document.querySelector('#page_<%= @page.id %>'); <% if @while_page_edit -%> Alchemy.reloadPreview(); document.querySelector('#page_<%= @page.id %>_status').outerHTML = '<%= j render("current_page", current_page: @page) %>'; Alchemy.growl("<%= j @notice %>"); Alchemy.closeCurrentDialog(); <% else -%> if (page) { var page_html = "<%= j render('page', page: @page) %>"; var compiler = Handlebars.compile(page_html); var tree = <%== @tree.to_json %>; page.outerHTML = compiler(tree.pages[0]); Alchemy.growl("<%= j @notice %>"); Alchemy.closeCurrentDialog(); } else { document.addEventListener('turbolinks:load', function () { Alchemy.growl("<%= j @notice %>"); }, { once: true }) Alchemy.closeCurrentDialog(function() { Turbolinks.visit(location.toString(), { action: "replace" }); }); } <% end -%> })()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-6.0.0.pre.rc6 | app/views/alchemy/admin/pages/update.js.erb |