diff --git a/app/views/account/AccountSettingsView.coffee b/app/views/account/AccountSettingsView.coffee index a367f2361..ec11752c0 100644 --- a/app/views/account/AccountSettingsView.coffee +++ b/app/views/account/AccountSettingsView.coffee @@ -43,7 +43,6 @@ module.exports = class AccountSettingsView extends CocoView toggleEmailSubscriptions: => subs = @getSubscriptions() $('#email-panel input[type="checkbox"]', @$el).prop('checked', not _.any(_.values(subs))).addClass('changed') - @save() checkNameExists: => name = $('#name', @$el).val() diff --git a/app/views/play/modal/PlayAccountModal.coffee b/app/views/play/modal/PlayAccountModal.coffee index c4a1743aa..2bd7f438e 100644 --- a/app/views/play/modal/PlayAccountModal.coffee +++ b/app/views/play/modal/PlayAccountModal.coffee @@ -35,19 +35,19 @@ module.exports = class PlayAccountModal extends ModalView onInputChanged: -> @$el.find('#save-button') - .text($.i18n.t('common.save', defaultValue: 'Save')) - .addClass 'btn-info' - .removeClass 'disabled btn-danger' - .removeAttr 'disabled' + .text($.i18n.t('common.save', defaultValue: 'Save')) + .addClass 'btn-info' + .removeClass 'disabled btn-danger' + .removeAttr 'disabled' onUserSaveBegan: -> @$el.find('#save-button') - .text($.i18n.t('common.saving', defaultValue: 'Saving...')) - .removeClass('btn-danger') - .addClass('btn-success').show() + .text($.i18n.t('common.saving', defaultValue: 'Saving...')) + .removeClass('btn-danger') + .addClass('btn-success').show() onUserSaveError: -> @$el.find('#save-button') - .text($.i18n.t('account_settings.error_saving', defaultValue: 'Error Saving')) - .removeClass('btn-success') - .addClass('btn-danger', 500) + .text($.i18n.t('account_settings.error_saving', defaultValue: 'Error Saving')) + .removeClass('btn-success') + .addClass('btn-danger', 500)