Fix missing modification for "panel_main" to "back_main"
This commit is contained in:
parent
b298aef031
commit
d85f29e65c
|
@ -1,5 +1,5 @@
|
|||
$(function () {
|
||||
$('#back_sidebar a, #panel_main a.nav').live('click',
|
||||
$('#back_sidebar a, #back_main a.nav').live('click',
|
||||
function () {
|
||||
$.getScript(this.href);
|
||||
history.pushState(null, document.title, this.href);
|
||||
|
@ -8,7 +8,7 @@ $(function () {
|
|||
}
|
||||
);
|
||||
|
||||
$('#panel_main a.reload').live('click',
|
||||
$('#back_main a.reload').live('click',
|
||||
function () {
|
||||
$.getScript(this.href);
|
||||
history.replaceState(null, document.title, this.href);
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
$('#panel_main').empty();
|
||||
$('#back_main').empty();
|
||||
switch ("<%= escape_javascript(@item._type)%>") {
|
||||
case 'Link':
|
||||
$('#panel_main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
||||
$('#back_main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
||||
break;
|
||||
case 'Page':
|
||||
$('#panel_main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
$('#back_main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
break;
|
||||
};
|
|
@ -1,3 +1,3 @@
|
|||
$('#back_sidebar').html("<%= escape_javascript(render(:partial => 'admin/items/site_map_left_bar')) %>");
|
||||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
||||
history.pushState(null, document.title, "<%= escape_javascript(admin_link_url(@item)) %>");
|
|
@ -1 +1 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/links/edit')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/links/edit')) %>");
|
|
@ -1 +1 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/links/new')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/links/new')) %>");
|
|
@ -1 +1 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'show')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'show')) %>");
|
|
@ -1,2 +1,2 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
|
||||
history.pushState(null, document.title, "<%= escape_javascript(admin_link_url(@item)) %>");
|
|
@ -1 +1 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => @partial)) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => @partial)) %>");
|
|
@ -1,2 +1,2 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/pages/show' )) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/pages/show' )) %>");
|
||||
history.pushState(null, document.title, "<%= escape_javascript(admin_page_url(@item)) %>");
|
|
@ -1,3 +1,3 @@
|
|||
$('#back_sidebar').html("<%= escape_javascript(render(:partial => 'admin/items/site_map_left_bar')) %>");
|
||||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
history.pushState(null, document.title, "<%= escape_javascript(admin_page_url(@item)) %>");
|
|
@ -1 +1 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render 'edit') %>");
|
||||
$('#back_main').html("<%= escape_javascript(render 'edit') %>");
|
|
@ -1 +1 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/pages/new')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/pages/new')) %>");
|
|
@ -1 +1 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'show')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'show')) %>");
|
|
@ -1,2 +1,2 @@
|
|||
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
|
||||
history.pushState(null, document.title, "<%= escape_javascript(admin_page_url(@item)) %>");
|
Reference in New Issue