Mercurial > lada > lada-client
comparison app/controller/form/Messung.js @ 687:aedf0709af92
Applied ReadOnlyParadigm to a Messung Window
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 25 Mar 2015 15:45:33 +0100 |
parents | 71e8b84d7829 |
children | 817524db4017 |
comparison
equal
deleted
inserted
replaced
686:14ac75f80ba1 | 687:aedf0709af92 |
---|---|
71 | 71 |
72 dirtyForm: function(form, dirty) { | 72 dirtyForm: function(form, dirty) { |
73 if (dirty) { | 73 if (dirty) { |
74 form.owner.down('button[action=save]').setDisabled(false); | 74 form.owner.down('button[action=save]').setDisabled(false); |
75 form.owner.down('button[action=discard]').setDisabled(false); | 75 form.owner.down('button[action=discard]').setDisabled(false); |
76 form.owner.up('window').disableChildren(); | |
76 } | 77 } |
77 else { | 78 else { |
78 form.owner.down('button[action=save]').setDisabled(true); | 79 form.owner.down('button[action=save]').setDisabled(true); |
79 form.owner.down('button[action=discard]').setDisabled(true); | 80 form.owner.down('button[action=discard]').setDisabled(true); |
81 form.owner.up('window').enableChildren(); | |
80 } | 82 } |
81 } | 83 } |
82 }); | 84 }); |