comparison app/controller/Proben.js @ 362:6a7a9267e00f

Issue56: Changed way how to set the form and window to readonly. Now all dialogs should habe proper readonly settings. Now the Save and Cancel button are displayed as needed.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 15 Aug 2013 14:07:35 +0200
parents 94884cd8f8c0
children 90cec3bb9c09
comparison
equal deleted inserted replaced
361:8a3991b5c200 362:6a7a9267e00f
86 } 86 }
87 }, 87 },
88 editItem: function(grid, record) { 88 editItem: function(grid, record) {
89 console.log('Editing Probe'); 89 console.log('Editing Probe');
90 var id = record.get('probeId'); 90 var id = record.get('probeId');
91 var view = Ext.widget('probenedit', {modelId: id});
92
93 // Load Zusatzwerte 91 // Load Zusatzwerte
94 var pstore = this.getProbenzusatzwerteStore(); 92 var pstore = this.getProbenzusatzwerteStore();
95 pstore.load(); 93 pstore.load();
96 var zstore = this.getZusatzwerteStore(); 94 var zstore = this.getZusatzwerteStore();
97 zstore.load({ 95 zstore.load({
118 mstore.load({ 116 mstore.load({
119 params: { 117 params: {
120 probeId: id 118 probeId: id
121 } 119 }
122 }); 120 });
121 var view = Ext.widget('probenedit', {modelId: id});
123 console.log("Loaded Probe with ID " + record.getId()); //outputs ID 122 console.log("Loaded Probe with ID " + record.getId()); //outputs ID
124 }, 123 },
125 createSuccess: function(form, record, response) { 124 createSuccess: function(form, record, response) {
126 // Close Createdialog 125 // Close Createdialog
127 var win = form.up('window'); 126 var win = form.up('window');

http://lada.wald.intevation.org