orbit-basic/app/views/admin/items/index.js.erb

7 lines
283 B
Plaintext
Raw Normal View History

$('#back_main').empty();
2012-07-30 09:21:37 +00:00
<% case @item.class %>
2012-05-22 06:45:49 +00:00
<% when 'Page' %>
$('#back_main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
2012-05-22 06:45:49 +00:00
<% when 'Link' %>
$('#back_main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
<% end %>