add photo is now in a fancy-pancy box
This commit is contained in:
parent
97b04fc0d7
commit
013a6d0849
6 changed files with 11 additions and 11 deletions
|
|
@ -8,10 +8,10 @@
|
||||||
.right
|
.right
|
||||||
#add_photo_loader
|
#add_photo_loader
|
||||||
= image_tag 'ajax-loader.gif'
|
= image_tag 'ajax-loader.gif'
|
||||||
#add_photo_button
|
= link_to 'Add Photos', '#new_photo_pane', :class => 'button', :id => "add_photo_button"
|
||||||
= link_to 'Add Photos', '#', :class => 'button'
|
|
||||||
|
.yo{:style => "display:none;"}
|
||||||
#add_photo_pane.contextual_pane
|
#new_photo_pane
|
||||||
= render "photos/new_photo", :photo => @photo, :album => @album
|
= render "photos/new_photo", :photo => @photo, :album => @album
|
||||||
|
|
||||||
.sub_header
|
.sub_header
|
||||||
|
|
|
||||||
|
|
@ -8,15 +8,13 @@
|
||||||
return confirm("You are about to upload " + total + " photos. Are you sure?");
|
return confirm("You are about to upload " + total + " photos. Are you sure?");
|
||||||
},
|
},
|
||||||
onFinish: function(event, total){
|
onFinish: function(event, total){
|
||||||
$("#add_photo_button .button").html( "Add Photos" );
|
$("#add_photo_button").html( "Add Photos" );
|
||||||
$("#add_photo_loader").fadeOut(400);
|
$("#add_photo_loader").fadeOut(400);
|
||||||
pane_toggler_button("photo")
|
|
||||||
},
|
},
|
||||||
onStart: function(event, total){
|
onStart: function(event, total){
|
||||||
$("#add_photo_pane").fadeOut(400);
|
$("#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_loader").fadeIn(400);
|
||||||
$("#add_photo_button").unbind();
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,9 @@ $(document).ready(function(){
|
||||||
$("#add_album_button").fancybox();
|
$("#add_album_button").fancybox();
|
||||||
$("#add_group_button").fancybox();
|
$("#add_group_button").fancybox();
|
||||||
$("#add_request_button").fancybox();
|
$("#add_request_button").fancybox();
|
||||||
|
$("#add_photo_button").fancybox();
|
||||||
|
|
||||||
pane_toggler_button("photo");
|
//pane_toggler_button("photo");
|
||||||
|
|
||||||
$("input[type='submit']").addClass("button");
|
$("input[type='submit']").addClass("button");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -408,9 +408,9 @@ h1.big_text {
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
.sub_header {
|
.sub_header {
|
||||||
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
margin-top: -5px;
|
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
color: #999999; }
|
color: #999999; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -507,12 +507,12 @@ h1.big_text
|
||||||
:width 100%
|
:width 100%
|
||||||
|
|
||||||
.sub_header
|
.sub_header
|
||||||
|
:position relative
|
||||||
:text
|
:text
|
||||||
:align center
|
:align center
|
||||||
:font
|
:font
|
||||||
:style italic
|
:style italic
|
||||||
:margin
|
:margin
|
||||||
:top -5px
|
|
||||||
:bottom 20px
|
:bottom 20px
|
||||||
:color #999
|
:color #999
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@
|
||||||
:border
|
:border
|
||||||
:top 1px solid #ccc
|
:top 1px solid #ccc
|
||||||
|
|
||||||
|
|
||||||
ul.button_set
|
ul.button_set
|
||||||
|
|
||||||
:padding
|
:padding
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue