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

9 lines
301 B
Plaintext

$('#main').empty();
switch ("<%= escape_javascript(@item._type)%>") {
case 'Link':
$('#main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
break;
case 'Page':
$('#main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
break;
};