mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Fix #3174: save button triggering on delete/reset account form fields
This commit is contained in:
parent
9ccd03f8d6
commit
7fdd6d5180
1 changed files with 2 additions and 4 deletions
|
@ -37,11 +37,9 @@ module.exports = class AccountSettingsView extends CocoView
|
|||
|
||||
#- Form input callbacks
|
||||
onChangePanelInput: (e) ->
|
||||
return if $(e.target).closest('.form').attr('id') in ['reset-progress-form', 'delete-account-form']
|
||||
$(e.target).addClass 'changed'
|
||||
if (JSON.stringify(document.getElementById('email1').className)).indexOf("changed") > -1 or (JSON.stringify(document.getElementById('password1').className)).indexOf("changed") > -1
|
||||
$(e.target).removeClass 'changed'
|
||||
else
|
||||
@trigger 'input-changed'
|
||||
@trigger 'input-changed'
|
||||
|
||||
onClickToggleAllButton: ->
|
||||
subs = @getSubscriptions()
|
||||
|
|
Loading…
Reference in a new issue