app/views/alchemy/admin/elements/create.js.erb in alchemy_cms-2.5.0.b5 vs app/views/alchemy/admin/elements/create.js.erb in alchemy_cms-2.5.0.b9

- old
+ new

@@ -5,11 +5,11 @@ <% if @cutted_element_id %> $('.element_editor[data-element-id="<%= @cutted_element_id %>"]').remove(); <% end %> <% if @page.can_have_cells? %> -Alchemy.selectOrCreateCellTab('<%= @cell_name -%>', '<%= @cell.nil? ? t("other Elements") : @cell.name_for_label -%>'); +Alchemy.selectOrCreateCellTab('<%= @cell_name -%>', '<%= @cell.nil? ? _t("other Elements") : @cell.name_for_label -%>'); <% end %> $element_area = $('#cell_<%= @cell_name -%>'); <% if @insert_at_top %> @@ -22,10 +22,10 @@ Alchemy.SortableElements(<%= @page.id %>, '<%= form_authenticity_token %>', $element_area); } else { $element_area.sortable('refresh'); } -Alchemy.growl('<%= t("successfully_added_element") -%>'); +Alchemy.growl('<%= _t("successfully_added_element") -%>'); Alchemy.closeCurrentWindow(); <% @element.contents.essence_richtexts.each do |content| %> Alchemy.Tinymce.addEditor('<%= content.form_field_id -%>'); <% end %>