Fix missing modification for "panel_main" to "back_main"

This commit is contained in:
chris2tof 2011-12-29 17:49:48 +08:00
parent b298aef031
commit d85f29e65c
14 changed files with 17 additions and 17 deletions

View File

@ -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);

View File

@ -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;
};

View File

@ -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)) %>");

View File

@ -1 +1 @@
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/links/edit')) %>");
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/links/edit')) %>");

View File

@ -1 +1 @@
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/links/new')) %>");
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/links/new')) %>");

View File

@ -1 +1 @@
$('#panel_main').html("<%= escape_javascript(render(:partial => 'show')) %>");
$('#back_main').html("<%= escape_javascript(render(:partial => 'show')) %>");

View File

@ -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)) %>");

View File

@ -1 +1 @@
$('#panel_main').html("<%= escape_javascript(render(:partial => @partial)) %>");
$('#back_main').html("<%= escape_javascript(render(:partial => @partial)) %>");

View File

@ -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)) %>");

View File

@ -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)) %>");

View File

@ -1 +1 @@
$('#panel_main').html("<%= escape_javascript(render 'edit') %>");
$('#back_main').html("<%= escape_javascript(render 'edit') %>");

View File

@ -1 +1 @@
$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/pages/new')) %>");
$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/pages/new')) %>");

View File

@ -1 +1 @@
$('#panel_main').html("<%= escape_javascript(render(:partial => 'show')) %>");
$('#back_main').html("<%= escape_javascript(render(:partial => 'show')) %>");

View File

@ -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)) %>");