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

9 lines
319 B
Plaintext
Raw Normal View History

2011-06-10 05:57:42 +00:00
$('#panel_main').empty();
2011-05-13 01:08:42 +00:00
switch ("<%= escape_javascript(@item._type)%>") {
case 'Link':
2011-06-10 05:57:42 +00:00
$('#panel_main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
break;
case 'Page':
2011-06-10 05:57:42 +00:00
$('#panel_main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
break;
};