Skip to content
Extraits de code Groupes Projets
Valider e880a5a1 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

comment submit buttons show again. further changes to show pages.

parent 183ac75c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -16,6 +16,10 @@
- for friend in @friends
= person_image_link(friend)
%h3
= link_to "#{@aspect} Albums", albums_path(:aspect => @aspect)
.span-19.appends-1.last
#thumbnails
- for photo in @album_photos
......@@ -23,10 +27,11 @@
= link_to (image_tag photo.url(:thumb_medium)), object_path(photo)
.span-5.last
%h3
%h2
= @album.name
="#{t('.updated')} #{how_long_ago(@album)}"
= link_to "#{@aspect} Albums", albums_path(:aspect => @aspect)
-if current_user.owns? @album
=render 'photos/new_photo'
= link_to t('.edit_album'), edit_album_path(@album), :class => 'button'
......
......@@ -61,6 +61,9 @@
- for friend in @friends
= person_image_link(friend)
%h3
= link_to @photo.album.name, @photo.album
.span-14.append-1.last
%div{:data=>{:guid=>@photo.id}}
#show_photo
......@@ -81,14 +84,6 @@
.description
= @photo.caption
%h3
= link_to @photo.album.name, @photo.album
= @photo.image
-if current_user.owns? @album
= link_to t('.edit_photo'), edit_photo_path(@photo), :class => "button"
-if current_user.owns? @photo
%div{:class => 'clear'}
-if !@photo.caption or @photo.caption == ""
......
......@@ -29,19 +29,6 @@ $(".show_post_comments").live('click', function(event) {
$(this).toggleClass( "visible" );
});
$(".comment_box").toggle(function(evt){
var $this = $(this);
$this.attr("rows", 2);
$this.parents("p").parents("form").children("p").children(".comment_submit").fadeIn(200);
});
$(".comment_box").live('blur', function(evt){
var $this = $(this);
if( $this.val() == '' ) {
$this.parents("p").parents("form").children("p").children(".comment_submit").fadeOut(0);
$this.attr("rows", 1);
}
});
$(".comment_submit").live('click', function(evt){
$(this).closest("form").children("p .comment_box").attr("rows", 1);
......
......@@ -121,3 +121,17 @@ $(".make_profile_photo").live("click", function(){
}
});
});
$(".comment_box").live("focus",function(evt){
var $this = $(this);
$this.attr("rows", 2);
$this.parents("p").parents("form").children("p").children(".comment_submit").fadeIn(200);
});
$(".comment_box").live('blur', function(evt){
var $this = $(this);
if( $this.val() == '' ) {
$this.parents("p").parents("form").children("p").children(".comment_submit").fadeOut(0);
$this.attr("rows", 1);
}
});
......@@ -548,7 +548,11 @@ li.message .from .right
:max-width 100%
:-webkit-box-shadow 0 2px 4px #333
:border 10px solid #fff
:bottom 50px solid #fff
:bottom 80px solid #fff
:-webkit-border-radius 3px
:-moz-border-radius 3px
:border-radius 3px
.caption
:margin
......@@ -1013,6 +1017,7 @@ ul#settings_nav
img
:width 20px
:height 20px
:margin-right -4px
#thumbnails
:line-height 14px
......@@ -1131,3 +1136,4 @@ header
&:hover
.controls
:display inline
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter