OSDN Git Service

Uncheck notify team checkbox by default
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tue, 19 Mar 2013 07:38:33 +0000 (09:38 +0200)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tue, 19 Mar 2013 07:38:33 +0000 (09:38 +0200)
app/assets/stylesheets/sections/notes.scss
app/views/notes/_form.html.haml

index 4a6d114..ae2e1b2 100644 (file)
@@ -284,6 +284,9 @@ ul.notes {
     margin-top: 8px;
     margin-left: 15px;
     @extend .pull-left;
-    width: 35%;
+  }
+
+  .js-notify-commit-author {
+    float: left;
   }
 }
index eadf5bc..c2bdeaf 100644 (file)
 
     .note-form-option
       = label_tag :notify do
-        = check_box_tag :notify, 1, !@note.for_commit?
+        = check_box_tag :notify, 1, false
         %span.light Notify team via email
 
       .js-notify-commit-author
         = label_tag :notify_author do
-          = check_box_tag :notify_author, 1 , @note.for_commit?
+          = check_box_tag :notify_author, 1 , false
           %span.light Notify commit author
     .note-form-option
       %a.choose-btn.btn.btn-small.js-choose-note-attachment-button