This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/items/index.js.erb

9 lines
319 B
Plaintext

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