Orbit/app/views/admin/items/index.js.erb

7 lines
288 B
Plaintext
Raw Normal View History

$('#back_main').empty();
2012-07-30 10:34:54 +00:00
<% case @item.class.to_s %>
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 %>