Issue #2387: Accounts setting toggle all fix

This commit is contained in:
Aman Kumar 2015-02-24 17:25:18 +05:30
parent c43ddda235
commit 0df2dea469

View file

@ -43,6 +43,7 @@ module.exports = class AccountSettingsView extends CocoView
toggleEmailSubscriptions: =>
subs = @getSubscriptions()
$('#email-panel input[type="checkbox"]', @$el).prop('checked', not _.any(_.values(subs))).addClass('changed')
@trigger 'input-changed'
checkNameExists: =>
name = $('#name', @$el).val()