Sha256: c178125b33ecb81976de63882e9130bfcff2cd45221acc19390dbe7d0c1a51e8

Contents?: true

Size: 1.17 KB

Versions: 8

Compression:

Stored size: 1.17 KB

Contents

(function($) {

  Alchemy.closeCurrentWindow();

  <%- if @while_page_edit -%>

    Alchemy.reloadPreview();
    $('#page_<%= @page.id -%>_status').replaceWith('<%= escape_javascript(render(:partial => "page_status")) -%>');

  <%- else -%>

    $('#page_<%= @page.id -%> > .sitemap_page > .sitemap_sitename .sitemap_pagename_link').text('<%= @page.name -%>');

    <%- if @page.locked? && @page.locker == current_user -%>

      $('#locked_page_<%= @page.id -%> > a').text('<%= @page.name -%>');

    <%- end -%>

    $('#page_<%= @page.id -%>_infos').html('<%= escape_javascript(render(:partial => "page_infos", :locals => {:page => @page})) -%>');

    <%- if @page.restricted? -%>

      $('#page_<%= @page.id -%> .page_status:nth-child(3)').addClass('restricted', 'not_restricted').removeClass('not_restricted');

    <%- elsif @page.redirects_to_external? -%>

      $('#page_<%= @page.id -%> span.redirect_url').html('&raquo; <%= t("Redirects to") %>: <%= h @page.urlname %>');

    <%- else -%>

      $('#page_<%= @page.id -%> .page_status:nth-child(3)').addClass('not_restricted').removeClass('restricted');

    <%- end -%>

  <%- end -%>

  Alchemy.growl("<%= @notice -%>");

})(jQuery);

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-2.2.rc13 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.2.rc11 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.2.rc8 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.2.rc7 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.2.rc6 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.2.rc3 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.2.rc2 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.2.rc1 app/views/alchemy/admin/pages/update.js.erb