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('&raquo; <%= _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

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/pages/update.js.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/pages/update.js.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/pages/update.js.erb