comparison app/controller/form/Messung.js @ 710:f204f30b824a

Handle readonly mode and refresh operations.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Apr 2015 10:50:33 +0200
parents f0bc5387abcc
children baef70abfe71
comparison
equal deleted inserted replaced
709:6f6d2df00130 710:f204f30b824a
37 button.up('toolbar').down('button[action=discard]') 37 button.up('toolbar').down('button[action=discard]')
38 .setDisabled(true); 38 .setDisabled(true);
39 formPanel.clearMessages(); 39 formPanel.clearMessages();
40 formPanel.setRecord(record); 40 formPanel.setRecord(record);
41 formPanel.setMessages(json.errors, json.warnings); 41 formPanel.setMessages(json.errors, json.warnings);
42 formPanel.up('window').initData();
42 formPanel.up('window').grid.store.reload(); 43 formPanel.up('window').grid.store.reload();
44 var parentWin = button.up('window').grid.up('window');
45 parentWin.initData();
43 if (response.action === 'create' && json.success) { 46 if (response.action === 'create' && json.success) {
44 button.up('window').close(); 47 var oldWin = button.up('window');
48 var probe = oldWin.record;
49 oldWin.close();
45 var win = Ext.create('Lada.view.window.MessungEdit', { 50 var win = Ext.create('Lada.view.window.MessungEdit', {
51 probe: probe,
52 parentWindow: parentWin,
53 grid: oldWin.grid,
46 record: record 54 record: record
47 }); 55 });
48 win.show(); 56 win.show();
49 win.initData(); 57 win.initData();
50 } 58 }

http://lada.wald.intevation.org