Mercurial > lada > lada-client
diff app/controller/form/Ortserstellung.js @ 1342:d5e270fa91e4
fix: Ortserstellung for Staaten and validity check triggers
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Mon, 06 Feb 2017 09:59:03 +0100 |
parents | 1a2cd9bef6d7 |
children | e5235309d461 |
line wrap: on
line diff
--- a/app/controller/form/Ortserstellung.js Fri Feb 03 21:43:52 2017 +0100 +++ b/app/controller/form/Ortserstellung.js Mon Feb 06 09:59:03 2017 +0100 @@ -23,13 +23,13 @@ 'ortserstellungsform button[action=revert]': { click: this.discard }, - 'ortserstellungsform staat' : { + 'ortserstellungsform staat combobox' : { change: this.checkCommitEnabled }, - 'ortserstellungsform verwaltungseinheit' : { + 'ortserstellungsform verwaltungseinheit combobox' : { change: this.checkCommitEnabled }, - 'ortserstellungsform koordinatenart': { + 'ortserstellungsform koordinatenart combobox': { change: this.checkCommitEnabled }, 'ortserstellungsform numfield [name=koordXExtern]': { @@ -61,7 +61,7 @@ button.setDisabled(true); me.down('button[action=revert]').setDisabled(true); button.hide(); - var ozw = me.up().parentWindow; + var ozw = me.up('window').parentWindow; var json = Ext.decode(response.response.responseText); if (json) { me.clearMessages(); @@ -150,8 +150,8 @@ && form.findField('koordYExtern').getValue() && form.findField('koordXExtern').getValue() ) - || form.findField('gemId').getValue() >= 0 - || form.findField('staatId').getValue() >= 0 + || form.findField('gemId').getValue() !== null + || form.findField('staatId').getValue() !== null ) { savebutton.setDisabled(false); } else {