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