Permalink
Browse files

FIX preview button height and comments controller

  • Loading branch information...
1 parent 4ace95a commit 25565858f439a1d74537ec1c8505427d0df84c73 @makaroni4 makaroni4 committed Apr 17, 2012
@@ -5,4 +5,8 @@
&:active, &:hover, &:focus, &.active {
color: $base;
}
+}
+
+.high_button {
+ height: 26px ! important;
}
@@ -7,7 +7,7 @@ def create
@comment.user = current_user
render_preview and return if params[:commit] == 'Write'
- if false#@comment.save
+ if @comment.save
render_create
else
render_json_error("We are sorry, but comment couldn't be saved.")
@@ -26,7 +26,7 @@ section class="comments" id="comments"
= f.label :question, 'Is it a Question?'
div class="button-groups"
div class="button-group"
- = f.submit 'Preview', :class => 'button preview_button'
+ = f.submit 'Preview', :class => 'button preview_button high_button'
= f.submit commit_title('Comment'), :class => 'button'
- if @presenter.comments.any?
= render :partial => 'comments/comment', :collection => @presenter.comments

0 comments on commit 2556585

Please sign in to comment.