Items UI changes
This commit is contained in:
1 parent
247b8ec4dc
commit
a695b9ad29
31 files changed
+141
-41
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<% content_for :sidebar do %>
|
||||
<div id='sidebar'><%= render 'admin/items/site_map_left_bar' %></div>
|
||||
<%= render 'admin/items/site_map_left_bar' %>
|
||||
<% end -%>
|
||||
|
||||
<% content_for :page_specific_javascript do %>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
$('#main').empty();
|
||||
$('#panel_main').empty();
|
||||
switch ("<%= escape_javascript(@item._type)%>") {
|
||||
case 'Link':
|
||||
$('#main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
||||
$('#panel_main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
||||
break;
|
||||
case 'Page':
|
||||
$('#main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
$('#panel_main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
break;
|
||||
};
|
||||
Reference in new issue
Block a user