Sha256: 72f5408ee146e38e1c07f5d9eb3fe72f84575a2fa0177c948f17819ecb7ef734
Contents?: true
Size: 1.12 KB
Versions: 26
Compression:
Stored size: 1.12 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.external_urlname %>'); <% else -%> $('.page_status:nth-child(3)', $page).addClass('not_restricted').removeClass('restricted'); <% end -%> <% end -%> Alchemy.closeCurrentDialog(); })()
Version data entries
26 entries across 26 versions & 2 rubygems