From 93da8520ed74de3534d0db72f2e87bbcb5c356e2 Mon Sep 17 00:00:00 2001 From: devin Date: Wed, 22 Aug 2012 16:46:37 +0800 Subject: [PATCH] gallery update --- .../app/assets/javascripts/galleryAPI.js.erb | 2 +- .../app/assets/stylesheets/gallery.css | 7 +++++ .../orbit_galleries/add_album.html.erb | 27 +++++++++++++------ .../orbit_galleries/edit_album.html.erb | 1 - 4 files changed, 27 insertions(+), 10 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 0b1c9bb8..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 @@ -87,7 +87,7 @@ var galleryAPI = function(){ } this.makeNewAlbum = function(){ $.get("add_album",function(html){ - rcom.modalWindow({loadHtml:html,width:400,"closeBtn":false},function(dom){ + rcom.modalWindow({loadHtml:html,width:400,height:320,"closeBtn":false},function(dom){ dom.find("#album_name_save_btn").click(function(){ var options ={ cid : dom.find("select#category_list").val(), 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 9c71fa01..045e1bc2 100755 --- a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css +++ b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css @@ -537,4 +537,11 @@ .o_gallery .rgbody, .o_album .rgbody { padding: 10px 8px; +} + +#categories .add-album .control-label { + text-align: left; + width: 100px; + padding-left: 12px; + padding-right: 12px; } \ No newline at end of file diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/add_album.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/add_album.html.erb index d20aa086..7af4f761 100644 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/add_album.html.erb +++ b/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/add_album.html.erb @@ -1,20 +1,31 @@