From d5916c9287b0126fc0c98e79cdba52fdf455a574 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Sat, 18 Dec 2010 20:26:27 -0800 Subject: [PATCH] removed comment button from sight --- app/views/comments/_new_comment.html.haml | 5 +++++ public/javascripts/stream.js | 4 ++-- public/stylesheets/sass/application.sass | 14 +++++++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/app/views/comments/_new_comment.html.haml b/app/views/comments/_new_comment.html.haml index c5b7d2486..43f25f3d3 100644 --- a/app/views/comments/_new_comment.html.haml +++ b/app/views/comments/_new_comment.html.haml @@ -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 + diff --git a/public/javascripts/stream.js b/public/javascripts/stream.js index 356985aae..d0840b9e6 100644 --- a/public/javascripts/stream.js +++ b/public/javascripts/stream.js @@ -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'); } }); diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 9f57d8a2c..88fad15a0 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -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