Mercurial > lada > lada-client
diff app/controller/form/Ortszuordnung.js @ 1144:5ceb0381ae73
Set a regex and required for ortszuordnungstyp field.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 27 May 2016 14:51:12 +0200 |
parents | f1d21e6a7449 |
children | 1cf5280bbc45 |
line wrap: on
line diff
--- a/app/controller/form/Ortszuordnung.js Thu May 26 14:56:41 2016 +0200 +++ b/app/controller/form/Ortszuordnung.js Fri May 27 14:51:12 2016 +0200 @@ -152,7 +152,9 @@ */ dirtyForm: function(form, dirty) { if (dirty) { - form.owner.down('button[action=save]').setDisabled(false); + if (form.getValues().ortId !== '') { + form.owner.down('button[action=save]').setDisabled(false); + } form.owner.down('button[action=discard]').setDisabled(false); } else {