Mercurial > lada > lada-client
comparison app/controller/form/Probe.js @ 686:14ac75f80ba1
Forgot to commit the controller for commit 684
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 25 Mar 2015 15:20:45 +0100 |
parents | a24db43b13b5 |
children | 817524db4017 |
comparison
equal
deleted
inserted
replaced
685:0391425689ed | 686:14ac75f80ba1 |
---|---|
72 | 72 |
73 dirtyForm: function(form, dirty) { | 73 dirtyForm: function(form, dirty) { |
74 if (dirty) { | 74 if (dirty) { |
75 form.owner.down('button[action=save]').setDisabled(false); | 75 form.owner.down('button[action=save]').setDisabled(false); |
76 form.owner.down('button[action=discard]').setDisabled(false); | 76 form.owner.down('button[action=discard]').setDisabled(false); |
77 form.owner.up('window').disableChildren(); | |
77 } | 78 } |
78 else { | 79 else { |
79 form.owner.down('button[action=save]').setDisabled(true); | 80 form.owner.down('button[action=save]').setDisabled(true); |
80 form.owner.down('button[action=discard]').setDisabled(true); | 81 form.owner.down('button[action=discard]').setDisabled(true); |
82 form.owner.up('window').enableChildren(); // todo this might not be true in all cases | |
81 } | 83 } |
82 } | 84 } |
83 }); | 85 }); |