removed comment button from sight

This commit is contained in:
danielvincent 2010-12-18 20:26:27 -08:00
parent a42a773d3d
commit d5916c9287
3 changed files with 20 additions and 3 deletions

View file

@ -9,3 +9,8 @@
= hidden_field_tag :post_id, post_id, :id => "post_id_on_#{post_id}"
= submit_tag t('.comment'), :id => "comment_submit_#{post_id}", :class => "comment_submit button", :disable_with => t('.commenting')
.submit_instructions.hidden
press
%b enter
to comment

View file

@ -27,7 +27,7 @@ var Stream = {
$stream.delegate("textarea.comment_box", "focus", function(evt) {
var commentBox = $(this);
commentBox
.closest("form").find(".comment_submit").show();
.closest("li").find(".submit_instructions").removeClass('hidden');
});
$stream.delegate("textarea.comment_box", "blur", function(evt) {
@ -36,7 +36,7 @@ var Stream = {
commentBox
.attr('rows',2)
.css('height','2.4em')
.closest("form").find(".comment_submit").hide();
.closest("li").find(".submit_instructions").addClass('hidden');
}
});

View file

@ -570,12 +570,24 @@ ul.comments
form
:margin
:top -5px
:bottom 0
:bottom 0.2em
:font
:size 1em
textarea
:font
:size 1em
:width 485px
.submit_instructions
:text-align center
:font
:size smaller
:color #999
:margin
:bottom -0.8em
:top -0.7em
:padding 0
.profile_photo
img