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

9 lines
260 B
Plaintext
Raw Normal View History

$('#main').empty();
switch ("<%= escape_javascript(@page._type)%>") {
case 'Link':
$('#main').append("TODO: page to edit the link");
break;
case 'Page':
$('#main').append("<%= escape_javascript(render(:partial => 'layouts/page')) %>");
break;
};