Mercurial > lada > lada-client
comparison app/controller/form/Ortserstellung.js @ 1354:02252ce0cf1e
Ortserstellung validator: fix reference to form
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Tue, 07 Feb 2017 16:44:07 +0100 |
parents | e5235309d461 |
children | d8db43ac9c12 |
comparison
equal
deleted
inserted
replaced
1353:39dbdfa00c91 | 1354:02252ce0cf1e |
---|---|
133 * Disables the save button if false | 133 * Disables the save button if false |
134 */ | 134 */ |
135 checkCommitEnabled: function(callingEl) { | 135 checkCommitEnabled: function(callingEl) { |
136 var panel; | 136 var panel; |
137 if (callingEl.up) { //called by a field in the form | 137 if (callingEl.up) { //called by a field in the form |
138 panel = callingEl.up('panel').up('panel'); | 138 panel = callingEl.up('ortserstellungsform'); |
139 } else { //called by the form | 139 } else { //called by the form |
140 panel = callingEl.owner; | 140 panel = callingEl.owner; |
141 } | 141 } |
142 var savebutton = panel.down('button[action=save]'); | 142 var savebutton = panel.down('button[action=save]'); |
143 var form = panel.getForm(); | 143 var form = panel.getForm(); |