From d85f29e65cc37c4a064f84da3b7489c12de8d7f0 Mon Sep 17 00:00:00 2001 From: chris2tof Date: Thu, 29 Dec 2011 17:49:48 +0800 Subject: [PATCH] Fix missing modification for "panel_main" to "back_main" --- app/assets/javascripts/side_bar_history.js | 4 ++-- app/views/admin/items/index.js.erb | 6 +++--- app/views/admin/links/create.js.erb | 2 +- app/views/admin/links/edit.js.erb | 2 +- app/views/admin/links/new.js.erb | 2 +- app/views/admin/links/show.js.erb | 2 +- app/views/admin/links/update.js.erb | 2 +- app/views/admin/page_parts/edit.js.erb | 2 +- app/views/admin/page_parts/update.js.erb | 2 +- app/views/admin/pages/create.js.erb | 2 +- app/views/admin/pages/edit.js.erb | 2 +- app/views/admin/pages/new.js.erb | 2 +- app/views/admin/pages/show.js.erb | 2 +- app/views/admin/pages/update.js.erb | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/assets/javascripts/side_bar_history.js b/app/assets/javascripts/side_bar_history.js index c3c7a486..036c63d4 100644 --- a/app/assets/javascripts/side_bar_history.js +++ b/app/assets/javascripts/side_bar_history.js @@ -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); diff --git a/app/views/admin/items/index.js.erb b/app/views/admin/items/index.js.erb index 652cdfc7..8dc86088 100644 --- a/app/views/admin/items/index.js.erb +++ b/app/views/admin/items/index.js.erb @@ -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; }; \ No newline at end of file diff --git a/app/views/admin/links/create.js.erb b/app/views/admin/links/create.js.erb index 1580a6d5..efb28418 100644 --- a/app/views/admin/links/create.js.erb +++ b/app/views/admin/links/create.js.erb @@ -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)) %>"); \ No newline at end of file diff --git a/app/views/admin/links/edit.js.erb b/app/views/admin/links/edit.js.erb index 34783329..083328cc 100644 --- a/app/views/admin/links/edit.js.erb +++ b/app/views/admin/links/edit.js.erb @@ -1 +1 @@ -$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/links/edit')) %>"); \ No newline at end of file +$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/links/edit')) %>"); \ No newline at end of file diff --git a/app/views/admin/links/new.js.erb b/app/views/admin/links/new.js.erb index 8c60761a..6914621f 100644 --- a/app/views/admin/links/new.js.erb +++ b/app/views/admin/links/new.js.erb @@ -1 +1 @@ -$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/links/new')) %>"); \ No newline at end of file +$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/links/new')) %>"); \ No newline at end of file diff --git a/app/views/admin/links/show.js.erb b/app/views/admin/links/show.js.erb index 6d60d86e..92676945 100644 --- a/app/views/admin/links/show.js.erb +++ b/app/views/admin/links/show.js.erb @@ -1 +1 @@ -$('#panel_main').html("<%= escape_javascript(render(:partial => 'show')) %>"); \ No newline at end of file +$('#back_main').html("<%= escape_javascript(render(:partial => 'show')) %>"); \ No newline at end of file diff --git a/app/views/admin/links/update.js.erb b/app/views/admin/links/update.js.erb index e82a6a6b..be187b0d 100644 --- a/app/views/admin/links/update.js.erb +++ b/app/views/admin/links/update.js.erb @@ -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)) %>"); \ No newline at end of file diff --git a/app/views/admin/page_parts/edit.js.erb b/app/views/admin/page_parts/edit.js.erb index 01446ed9..37367ef2 100644 --- a/app/views/admin/page_parts/edit.js.erb +++ b/app/views/admin/page_parts/edit.js.erb @@ -1 +1 @@ -$('#panel_main').html("<%= escape_javascript(render(:partial => @partial)) %>"); \ No newline at end of file +$('#back_main').html("<%= escape_javascript(render(:partial => @partial)) %>"); \ No newline at end of file diff --git a/app/views/admin/page_parts/update.js.erb b/app/views/admin/page_parts/update.js.erb index d41e3287..bc4592e6 100644 --- a/app/views/admin/page_parts/update.js.erb +++ b/app/views/admin/page_parts/update.js.erb @@ -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)) %>"); \ No newline at end of file diff --git a/app/views/admin/pages/create.js.erb b/app/views/admin/pages/create.js.erb index 52b35e8d..efeb27a1 100644 --- a/app/views/admin/pages/create.js.erb +++ b/app/views/admin/pages/create.js.erb @@ -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)) %>"); \ No newline at end of file diff --git a/app/views/admin/pages/edit.js.erb b/app/views/admin/pages/edit.js.erb index 67d528b5..8c741309 100644 --- a/app/views/admin/pages/edit.js.erb +++ b/app/views/admin/pages/edit.js.erb @@ -1 +1 @@ -$('#panel_main').html("<%= escape_javascript(render 'edit') %>"); \ No newline at end of file +$('#back_main').html("<%= escape_javascript(render 'edit') %>"); \ No newline at end of file diff --git a/app/views/admin/pages/new.js.erb b/app/views/admin/pages/new.js.erb index 58070a22..cdddb060 100644 --- a/app/views/admin/pages/new.js.erb +++ b/app/views/admin/pages/new.js.erb @@ -1 +1 @@ -$('#panel_main').html("<%= escape_javascript(render(:partial => 'admin/pages/new')) %>"); \ No newline at end of file +$('#back_main').html("<%= escape_javascript(render(:partial => 'admin/pages/new')) %>"); \ No newline at end of file diff --git a/app/views/admin/pages/show.js.erb b/app/views/admin/pages/show.js.erb index 6d60d86e..92676945 100644 --- a/app/views/admin/pages/show.js.erb +++ b/app/views/admin/pages/show.js.erb @@ -1 +1 @@ -$('#panel_main').html("<%= escape_javascript(render(:partial => 'show')) %>"); \ No newline at end of file +$('#back_main').html("<%= escape_javascript(render(:partial => 'show')) %>"); \ No newline at end of file diff --git a/app/views/admin/pages/update.js.erb b/app/views/admin/pages/update.js.erb index 4fdd4357..26561d07 100644 --- a/app/views/admin/pages/update.js.erb +++ b/app/views/admin/pages/update.js.erb @@ -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)) %>"); \ No newline at end of file