From 584d1eb0e060d42207581f51e0b76ddffd146593 Mon Sep 17 00:00:00 2001 From: devin Date: Tue, 21 Aug 2012 14:31:25 +0800 Subject: [PATCH] gallery update --- .../app/assets/javascripts/galleryAPI.js.erb | 2 +- .../gallery/app/assets/stylesheets/gallery.css | 17 +++++++++++++++-- .../back_end/orbit_galleries/index.html.erb | 4 ++-- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb index 6be6ed5b..85614059 100644 --- a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb +++ b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb @@ -165,7 +165,7 @@ var galleryAPI = function(){ var $img = $("
"+album.name+"
"); var tag_string = ""; for(tag in album.tag_names){ - tag_string+= '' + album.tag_names[tag] + ''; + tag_string+= '' + album.tag_names[tag] + ''; } $img.find(".tagnames").html(tag_string); g.albumArea.find("#imgholder").append($img); diff --git a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css index 9875ef9a..181fa0e2 100755 --- a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css +++ b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css @@ -491,8 +491,14 @@ top: 50%; margin-top: -7px; } -#tag_panel .bt-save { - +#tag_panel .tag_save { + position: absolute; + right: 0; + bottom: 0; + height: 31px; + border-left: solid 1px #ccc; + background-color: #fff; + padding: 2px 4px 0 4px; } @@ -520,3 +526,10 @@ .o_album .rgbody { margin: 10px 8px; } +.o_gallery .tagnames { + display: inline-block; +} +.o_gallery .label-tags { + display: inline-block; + margin: 0 6px 6px 0; +} diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/index.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/index.html.erb index c98dd323..51b0a527 100644 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/index.html.erb +++ b/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/index.html.erb @@ -92,8 +92,8 @@ - <%= I18n.t("gallery.save") %> - + + <% end %>