diff --git a/app/views/albums/show.html.haml b/app/views/albums/show.html.haml
index e2048daf3..a2cded0c9 100644
--- a/app/views/albums/show.html.haml
+++ b/app/views/albums/show.html.haml
@@ -8,10 +8,10 @@
.right
#add_photo_loader
= image_tag 'ajax-loader.gif'
- #add_photo_button
- = link_to 'Add Photos', '#', :class => 'button'
-
- #add_photo_pane.contextual_pane
+ = link_to 'Add Photos', '#new_photo_pane', :class => 'button', :id => "add_photo_button"
+
+ .yo{:style => "display:none;"}
+ #new_photo_pane
= render "photos/new_photo", :photo => @photo, :album => @album
.sub_header
diff --git a/app/views/photos/_new_photo.haml b/app/views/photos/_new_photo.haml
index cd83d648d..81366ccd7 100644
--- a/app/views/photos/_new_photo.haml
+++ b/app/views/photos/_new_photo.haml
@@ -8,15 +8,13 @@
return confirm("You are about to upload " + total + " photos. Are you sure?");
},
onFinish: function(event, total){
- $("#add_photo_button .button").html( "Add Photos" );
+ $("#add_photo_button").html( "Add Photos" );
$("#add_photo_loader").fadeOut(400);
- pane_toggler_button("photo")
},
onStart: function(event, total){
$("#add_photo_pane").fadeOut(400);
- $("#add_photo_button .button").html( "Uploading Photos" );
+ $("#add_photo_button").html( "Uploading Photos" );
$("#add_photo_loader").fadeIn(400);
- $("#add_photo_button").unbind();
return true;
}
});
diff --git a/public/javascripts/view.js b/public/javascripts/view.js
index e91e6a912..6648c1714 100644
--- a/public/javascripts/view.js
+++ b/public/javascripts/view.js
@@ -86,8 +86,9 @@ $(document).ready(function(){
$("#add_album_button").fancybox();
$("#add_group_button").fancybox();
$("#add_request_button").fancybox();
+ $("#add_photo_button").fancybox();
- pane_toggler_button("photo");
+ //pane_toggler_button("photo");
$("input[type='submit']").addClass("button");
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 000432b85..2369cd6d2 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -408,9 +408,9 @@ h1.big_text {
width: 100%; }
.sub_header {
+ position: relative;
text-align: center;
font-style: italic;
- margin-top: -5px;
margin-bottom: 20px;
color: #999999; }
diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass
index 43b118183..6f02b8da7 100644
--- a/public/stylesheets/sass/application.sass
+++ b/public/stylesheets/sass/application.sass
@@ -507,12 +507,12 @@ h1.big_text
:width 100%
.sub_header
+ :position relative
:text
:align center
:font
:style italic
:margin
- :top -5px
:bottom 20px
:color #999
diff --git a/public/stylesheets/sass/ui.sass b/public/stylesheets/sass/ui.sass
index 5863632b3..ee01e08bc 100644
--- a/public/stylesheets/sass/ui.sass
+++ b/public/stylesheets/sass/ui.sass
@@ -48,6 +48,7 @@
:border
:top 1px solid #ccc
+
ul.button_set
:padding