Checkbox now gets styled properly and defaults to true

This commit is contained in:
Zanz2 2018-08-21 09:02:54 +02:00
parent beb1d02914
commit 9a482eab2e
2 changed files with 2 additions and 4 deletions

View file

@ -71,7 +71,8 @@
// Setup notification checkbox buttons
function notificationsSettings() {
var notification_settings = [ "recent_notification",
"assignments_notification" ]
"assignments_notification",
"popover_v2_toggle" ]
for (var i = 0; i < notification_settings.length; i++ ) {
var setting = $('[name="' + notification_settings[i] + '"]');

View file

@ -150,9 +150,6 @@
</div>
<div class="col-sm-8">
<%= check_box_tag :popover_v2_toggle, @user.popover_v2_toggle %>
<div class="btn-group">
</div>
</div>
</div>
</div>