diff --git a/public/javascripts/view.js b/public/javascripts/view.js index dec170a07b1209cd3fe134d170cb21d0142e465f..67cdcce5e76451dceacfdb0a5272d86b17a218be 100644 --- a/public/javascripts/view.js +++ b/public/javascripts/view.js @@ -47,9 +47,9 @@ $(document).ready(function(){ } ); - $("#publisher textarea").keydown( function(e) { + $("#publisher textarea, .comment textarea").keydown( function(e) { if (e.keyCode == 13) { - $("#publisher form").submit(); + $(this).closest("form").submit(); } }); diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index 68e1199a94b3773bc06f43a2d48ebd8f5939777d..b37faf8393bc9173f7596fc87e0f97a8705cd1cd 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -248,7 +248,6 @@ li.message :background #eee .content - :max-width 610px :margin :top -4px :padding @@ -450,16 +449,13 @@ ul.comment_set :top 1em :padding 0 :list-style none - :max-width 610px + :background + :color rgba(10,81,109,0.05) textarea :width 100% li.comment - :margin - :bottom 0.5em - :background - :color rgba(10,81,109,0.05) :padding 0.6em :border :bottom 1px solid #ddd @@ -468,8 +464,10 @@ ul.comment_set :color #777 :margin :top -2px + :bottom -2px :padding :left 45px + :right 20px .from a :color #444 @@ -477,7 +475,7 @@ ul.comment_set :size 12px :line - :height 18px + :height 16px div.time :color #bbb