app/views/alchemy/admin/pages/update.js.erb in alchemy_cms-3.2.1 vs app/views/alchemy/admin/pages/update.js.erb in alchemy_cms-3.3.0.rc1

- old
+ new

@@ -3,17 +3,17 @@ Alchemy.growl("<%= j @notice %>"); <% if @old_page_layout != @page.page_layout -%> Alchemy.ElementsWindow.reload(); - Alchemy.growl('<%= j _t(:page_layout_changed_notice) %>'); + Alchemy.growl('<%= j Alchemy.t(:page_layout_changed_notice) %>'); <% end -%> <% if @while_page_edit -%> Alchemy.reloadPreview(); - $('#page_<%= @page.id %>_status').replaceWith('<%= j render("page_status") %>'); + $('#page_<%= @page.id %>_status').replaceWith('<%= j render("page_status", page: @page) %>'); <% else -%> $('#page_<%= @page.id %>').replaceWith('<%= j render("page", page: @page) %>'); $page = $('#page_<%= @page.id %>'); @@ -24,10 +24,10 @@ <% 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 %>'); + $('span.redirect_url', $page).html('&raquo; <%= Alchemy.t("Redirects to") %>: <%= h @page.external_urlname %>'); <% else -%> $('.page_status:nth-child(3)', $page).addClass('not_restricted').removeClass('restricted'); <% end -%> <% end -%>