2011-05-09 10:49:57 +00:00
|
|
|
$('#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-05-13 01:08:42 +00:00
|
|
|
$('#main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
2011-05-09 10:49:57 +00:00
|
|
|
break;
|
|
|
|
case 'Page':
|
2011-05-13 01:08:42 +00:00
|
|
|
$('#main').append("<%= escape_javascript(render(:partial => 'page')) %>");
|
2011-05-09 10:49:57 +00:00
|
|
|
break;
|
|
|
|
};
|