fixed top right buttons on album page, etc. also, made the image loader simpler.
This commit is contained in:
parent
91b42ac0e2
commit
acd00c2a59
6 changed files with 46 additions and 17 deletions
|
|
@ -5,8 +5,10 @@
|
||||||
= @album.name
|
= @album.name
|
||||||
|
|
||||||
-if current_user.owns? @album
|
-if current_user.owns? @album
|
||||||
.button.right#add_photo_button
|
.right#add_photo_button
|
||||||
= link_to 'Add Photos', '#'
|
#add_photo_loader
|
||||||
|
= image_tag 'ajax-loader.gif'
|
||||||
|
= link_to 'Add Photos', '#', :class => 'button'
|
||||||
|
|
||||||
#add_photo_pane.contextual_pane
|
#add_photo_pane.contextual_pane
|
||||||
= render "photos/new_photo", :photo => @photo, :album => @album
|
= render "photos/new_photo", :photo => @photo, :album => @album
|
||||||
|
|
@ -27,5 +29,5 @@
|
||||||
= link_to "⇧ albums", albums_path
|
= link_to "⇧ albums", albums_path
|
||||||
|
|
||||||
-if current_user.owns? @album
|
-if current_user.owns? @album
|
||||||
.button.right
|
.right
|
||||||
= link_to 'Edit Album', edit_album_path(@album)
|
= link_to 'Edit Album', edit_album_path(@album), :class => 'button'
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@
|
||||||
return confirm("You are about to upload " + total + " photos. Are you sure?");
|
return confirm("You are about to upload " + total + " photos. Are you sure?");
|
||||||
},
|
},
|
||||||
setName: function(text) {
|
setName: function(text) {
|
||||||
$("#progress_report_name").text(text);
|
//$("#progress_report_name").text(text);
|
||||||
},
|
},
|
||||||
setStatus: function(text) {
|
setStatus: function(text) {
|
||||||
$("#progress_report_status").text(text);
|
//$("#progress_report_status").text(text);
|
||||||
},
|
},
|
||||||
setProgress: function(val) {
|
setProgress: function(val) {
|
||||||
//$("#progress_report_bar").css('width', Math.ceil(val*100)+"%");
|
//$("#progress_report_bar").css('width', Math.ceil(val*100)+"%");
|
||||||
|
|
@ -20,11 +20,16 @@
|
||||||
//alert(response);
|
//alert(response);
|
||||||
},
|
},
|
||||||
onFinish: function(event, total){
|
onFinish: function(event, total){
|
||||||
$("#progress_report").delay(600).slideUp(200);
|
//$("#progress_report").delay(600).slideUp(200);
|
||||||
$("#add_photo_box").delay(600).fadeOut(200);
|
//$("#add_photo_pane").delay(600).fadeOut(200);
|
||||||
|
$("#add_photo_button .button").html( "Add Photos" );
|
||||||
|
$("#add_photo_loader").fadeOut(0);
|
||||||
},
|
},
|
||||||
onStart: function(event, total){
|
onStart: function(event, total){
|
||||||
$("#progress_report").slideDown(600);
|
$("#add_photo_pane").fadeOut(400);
|
||||||
|
$("#add_photo_button .button").html( "Uploading Photos" );
|
||||||
|
//$("#add_photo_button").prepend( "<img alt='Loader' src='/images/loader.gif'/>" );
|
||||||
|
$("#add_photo_loader").fadeIn(400);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
#add_group_pane.contextual_pane
|
#add_group_pane.contextual_pane
|
||||||
= render "groups/new_group"
|
= render "groups/new_group"
|
||||||
|
|
||||||
- if @group
|
|
||||||
#friend_pictures
|
#friend_pictures
|
||||||
|
- if @group
|
||||||
- for friend in @group.people
|
- for friend in @group.people
|
||||||
= person_image_link(friend)
|
= person_image_link(friend)
|
||||||
|
|
||||||
|
|
|
||||||
BIN
public/images/ajax-loader.gif
Normal file
BIN
public/images/ajax-loader.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
|
|
@ -70,7 +70,6 @@ header {
|
||||||
color: #555555;
|
color: #555555;
|
||||||
background-color: #2b2726;
|
background-color: #2b2726;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
background-color: white;
|
|
||||||
border-bottom: 3px solid #333333;
|
border-bottom: 3px solid #333333;
|
||||||
padding: 6px 0;
|
padding: 6px 0;
|
||||||
padding-top: 0; }
|
padding-top: 0; }
|
||||||
|
|
@ -381,9 +380,15 @@ h1.big_text {
|
||||||
border-bottom: 1px solid #666666;
|
border-bottom: 1px solid #666666;
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
|
||||||
|
.big_text .right {
|
||||||
|
top: -8px; }
|
||||||
|
|
||||||
|
#content_bottom .right {
|
||||||
|
top: -5px; }
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
float: right;
|
display: inline;
|
||||||
margin-top: 6px; }
|
float: right; }
|
||||||
|
|
||||||
.back {
|
.back {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -459,3 +464,9 @@ h1.big_text {
|
||||||
#group #friend_pictures img {
|
#group #friend_pictures img {
|
||||||
display: none;
|
display: none;
|
||||||
height: 40px; }
|
height: 40px; }
|
||||||
|
|
||||||
|
#add_photo_loader {
|
||||||
|
position: absolute;
|
||||||
|
display: none;
|
||||||
|
left: -25px;
|
||||||
|
top: 4px; }
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,6 @@ header
|
||||||
:background
|
:background
|
||||||
:color #2B2726
|
:color #2B2726
|
||||||
:color #000
|
:color #000
|
||||||
:color #fff
|
|
||||||
:border
|
:border
|
||||||
:bottom 3px solid #333
|
:bottom 3px solid #333
|
||||||
:padding 6px 0
|
:padding 6px 0
|
||||||
|
|
@ -473,10 +472,16 @@ h1.big_text
|
||||||
:text
|
:text
|
||||||
:align center
|
:align center
|
||||||
|
|
||||||
|
.big_text
|
||||||
.right
|
.right
|
||||||
|
:top -8px
|
||||||
|
#content_bottom
|
||||||
|
.right
|
||||||
|
:top -5px
|
||||||
|
|
||||||
|
.right
|
||||||
|
:display inline
|
||||||
:float right
|
:float right
|
||||||
:margin
|
|
||||||
:top 6px
|
|
||||||
|
|
||||||
.back
|
.back
|
||||||
:position absolute
|
:position absolute
|
||||||
|
|
@ -575,3 +580,9 @@ h1.big_text
|
||||||
img
|
img
|
||||||
:display none
|
:display none
|
||||||
:height 40px
|
:height 40px
|
||||||
|
|
||||||
|
#add_photo_loader
|
||||||
|
:position absolute
|
||||||
|
:display none
|
||||||
|
:left -25px
|
||||||
|
:top 4px
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue