comparison app/controller/Messwert.js @ 453:2b886fc38282

Formatting
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 12 Dec 2013 11:18:42 +0100
parents 6a7a9267e00f
children debfcc7713e3
comparison
equal deleted inserted replaced
452:b5b129742abf 453:2b886fc38282
49 messung.set('messungsId', button.parentId); 49 messung.set('messungsId', button.parentId);
50 var view = Ext.widget('messwertecreate', {model: messung}); 50 var view = Ext.widget('messwertecreate', {model: messung});
51 }, 51 },
52 editItem: function(grid, record) { 52 editItem: function(grid, record) {
53 console.log('Editing Messwert'); 53 console.log('Editing Messwert');
54 record.getAuthInfo(this.initEditWindow) 54 record.getAuthInfo(this.initEditWindow);
55 console.log("Loaded Messwert with ID " + record.getId()); //outputs ID 55 console.log("Loaded Messwert with ID " + record.getId()); //outputs ID
56 }, 56 },
57 initEditWindow: function(record, readonly, owner) { 57 initEditWindow: function(record, readonly, owner) {
58 var view = Ext.widget('messwertecreate', {model: record}); 58 var view = Ext.widget('messwertecreate', {model: record});
59 var ignore = Array(); 59 var ignore = Array();
82 } 82 }
83 }); 83 });
84 }, 84 },
85 createSuccess: function(form, record, operation) { 85 createSuccess: function(form, record, operation) {
86 // Reload store 86 // Reload store
87 var store = this.getMessungenStore(); 87 var store = this.getMesswerteStore();
88 store.reload(); 88 store.reload();
89 var win = form.up('window'); 89 var win = form.up('window');
90 win.close(); 90 win.close();
91 }, 91 },
92 createFailure: function(form, record, operation) { 92 createFailure: function(form, record, operation) {
97 buttons: Ext.Msg.OK 97 buttons: Ext.Msg.OK
98 }); 98 });
99 }, 99 },
100 editSuccess: function(form, record, operation) { 100 editSuccess: function(form, record, operation) {
101 // Reload store 101 // Reload store
102 var store = this.getMessungenStore(); 102 var store = this.getMesswerteStore();
103 store.reload(); 103 store.reload();
104 var win = form.up('window'); 104 var win = form.up('window');
105 win.close(); 105 win.close();
106 }, 106 },
107 editFailure: function(form, record, operation) { 107 editFailure: function(form, record, operation) {

http://lada.wald.intevation.org