comparison 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
comparison
equal deleted inserted replaced
1341:2e8eba3918b1 1342:d5e270fa91e4
21 click: this.save 21 click: this.save
22 }, 22 },
23 'ortserstellungsform button[action=revert]': { 23 'ortserstellungsform button[action=revert]': {
24 click: this.discard 24 click: this.discard
25 }, 25 },
26 'ortserstellungsform staat' : { 26 'ortserstellungsform staat combobox' : {
27 change: this.checkCommitEnabled 27 change: this.checkCommitEnabled
28 }, 28 },
29 'ortserstellungsform verwaltungseinheit' : { 29 'ortserstellungsform verwaltungseinheit combobox' : {
30 change: this.checkCommitEnabled 30 change: this.checkCommitEnabled
31 }, 31 },
32 'ortserstellungsform koordinatenart': { 32 'ortserstellungsform koordinatenart combobox': {
33 change: this.checkCommitEnabled 33 change: this.checkCommitEnabled
34 }, 34 },
35 'ortserstellungsform numfield [name=koordXExtern]': { 35 'ortserstellungsform numfield [name=koordXExtern]': {
36 change: this.checkCommitEnabled 36 change: this.checkCommitEnabled
37 }, 37 },
59 me.down('staat').store.load( 59 me.down('staat').store.load(
60 { id : newrecord.get('staat') }); 60 { id : newrecord.get('staat') });
61 button.setDisabled(true); 61 button.setDisabled(true);
62 me.down('button[action=revert]').setDisabled(true); 62 me.down('button[action=revert]').setDisabled(true);
63 button.hide(); 63 button.hide();
64 var ozw = me.up().parentWindow; 64 var ozw = me.up('window').parentWindow;
65 var json = Ext.decode(response.response.responseText); 65 var json = Ext.decode(response.response.responseText);
66 if (json) { 66 if (json) {
67 me.clearMessages(); 67 me.clearMessages();
68 me.setMessages(json.errors, json.warnings); 68 me.setMessages(json.errors, json.warnings);
69 } 69 }
148 if ( 148 if (
149 (form.findField('kdaId').getValue() 149 (form.findField('kdaId').getValue()
150 && form.findField('koordYExtern').getValue() 150 && form.findField('koordYExtern').getValue()
151 && form.findField('koordXExtern').getValue() 151 && form.findField('koordXExtern').getValue()
152 ) 152 )
153 || form.findField('gemId').getValue() >= 0 153 || form.findField('gemId').getValue() !== null
154 || form.findField('staatId').getValue() >= 0 154 || form.findField('staatId').getValue() !== null
155 ) { 155 ) {
156 savebutton.setDisabled(false); 156 savebutton.setDisabled(false);
157 } else { 157 } else {
158 savebutton.setDisabled(true); 158 savebutton.setDisabled(true);
159 } 159 }

http://lada.wald.intevation.org