From 9fc8ec8e16550b7fdf42526976e5ba26eb8e46ff Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 21 Nov 2012 15:00:07 +0800 Subject: [PATCH] back button fix for frontend --- .../controllers/panel/gallery/front_end/albums_controller.rb | 2 ++ .../app/views/panel/gallery/front_end/albums/index.html.erb | 2 +- .../app/views/panel/gallery/front_end/albums/show.html.erb | 2 +- .../app/views/panel/gallery/front_end/albums/theater.html.erb | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb index b39c1fa5..51ba47cb 100644 --- a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb +++ b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb @@ -10,6 +10,7 @@ class Panel::Gallery::FrontEnd::AlbumsController < OrbitWidgetController @album.tag_ids.each do |tag| @tags << GalleryTag.find(tag)[I18n.locale] end + end def get_albums @@ -96,6 +97,7 @@ class Panel::Gallery::FrontEnd::AlbumsController < OrbitWidgetController tags.each do |tag| @tagnames << GalleryTag.find(tag)[I18n.locale] end + @back_link = panel_gallery_front_end_album_path(@albumid) end diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/index.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/index.html.erb index caeaf74a..7f7ce0ef 100644 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/index.html.erb +++ b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/index.html.erb @@ -36,7 +36,7 @@ gallery.loadAlbums(gallery.urlVars['tag']); }else{ gallery.loadArea = "albums"; - g.loadAlbums("all"); + gallery.loadAlbums("all"); } diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/show.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/show.html.erb index c0d7fb1f..10520358 100644 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/show.html.erb +++ b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/show.html.erb @@ -20,7 +20,7 @@
diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/theater.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/theater.html.erb index 58137ea5..dc1a38f6 100644 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/theater.html.erb +++ b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/theater.html.erb @@ -42,7 +42,7 @@