Sha256: e6c4ef20b93e50e95708e660019031996c021a8dd32809f1486567e2d45122de
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
(function() { var $page; Alchemy.growl("<%= j @notice %>"); <% if @old_page_layout != @page.page_layout -%> Alchemy.ElementsWindow.reload(); Alchemy.growl('<%= j _t(:page_layout_changed_notice) %>'); <% end -%> <% if @while_page_edit -%> Alchemy.reloadPreview(); $('#page_<%= @page.id %>_status').replaceWith('<%= j render("page_status") %>'); <% else -%> $('#page_<%= @page.id %>').replaceWith('<%= j render("page", page: @page) %>'); $page = $('#page_<%= @page.id %>'); Alchemy.watchForDialogs($page); <% if @page.locked? && @page.locker == current_alchemy_user -%> $('#locked_page_<%= @page.id %> > a').html('<%= @page.name %>'); <% end -%> <% if @page.restricted? -%> $('.page_status:nth-child(3)', $page).addClass('restricted', 'not_restricted').removeClass('not_restricted'); <% elsif @page.redirects_to_external? -%> $('span.redirect_url', $page).html('» <%= _t("Redirects to") %>: <%= h @page.urlname %>'); <% else -%> $('.page_status:nth-child(3)', $page).addClass('not_restricted').removeClass('restricted'); <% end -%> <% end -%> Alchemy.closeCurrentDialog(); })()
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-3.0.0.rc5 | app/views/alchemy/admin/pages/update.js.erb |