Sha256: 92d5e35658f79d33fc1327780bceb4669d9018ccae2556f0a9ef72bb9fb6b574

Contents?: true

Size: 1.14 KB

Versions: 19

Compression:

Stored size: 1.14 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

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.11 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.9.1 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.9 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.8.1 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.8 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.7 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.6 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.5 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.4 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.3 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.2 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.1 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.rc6 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.rc5 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/pages/update.js.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/pages/update.js.erb