comparison app/controller/Messwert.js @ 499:8b4ec61c5752

Removed most log messages to make the application less verbose.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Nov 2014 11:12:21 +0100
parents 7c0653e8d9f7
children 5960189e4461
comparison
equal deleted inserted replaced
498:c1b77fb96b01 499:8b4ec61c5752
21 'Messungen', 21 'Messungen',
22 'Messwerte' 22 'Messwerte'
23 ], 23 ],
24 24
25 init: function() { 25 init: function() {
26 console.log('Initialising the Messwert controller');
27 this.callParent(arguments); 26 this.callParent(arguments);
28 }, 27 },
29 28
30 addListeners: function() { 29 addListeners: function() {
31 this.control({ 30 this.control({
47 } 46 }
48 }); 47 });
49 }, 48 },
50 49
51 saveItem: function(button) { 50 saveItem: function(button) {
52 console.log('Saving MesswerMesswert');
53 var form = button.up('window').down('form'); 51 var form = button.up('window').down('form');
54 form.commit(); 52 form.commit();
55 }, 53 },
56 54
57 addItem: function(button) { 55 addItem: function(button) {
62 model: messung 60 model: messung
63 }); 61 });
64 }, 62 },
65 63
66 editItem: function(grid, record) { 64 editItem: function(grid, record) {
67 console.log('Editing Messwert');
68 var mstore = Ext.data.StoreManager.get('Messungen'); 65 var mstore = Ext.data.StoreManager.get('Messungen');
69 var messung = mstore.getById(record.get('messungsId')); 66 var messung = mstore.getById(record.get('messungsId'));
70 record.getAuthInfo(this.initEditWindow, messung.get('probeId')); 67 record.getAuthInfo(this.initEditWindow, messung.get('probeId'));
71 console.log('Loaded Messwert with ID ' + record.getId());
72 }, 68 },
73 69
74 initEditWindow: function(record, readonly) { 70 initEditWindow: function(record, readonly) {
75 var view = Ext.widget('messwertecreate', { 71 var view = Ext.widget('messwertecreate', {
76 model: record 72 model: record
94 method: 'DELETE', 90 method: 'DELETE',
95 success: function() { 91 success: function() {
96 store.reload(); 92 store.reload();
97 } 93 }
98 }); 94 });
99 console.log('Deleting Messwert');
100 }
101 else {
102 console.log('Cancel Deleting Messwert');
103 } 95 }
104 }); 96 });
105 }, 97 },
106 98
107 createSuccess: function(form) { 99 createSuccess: function(form) {

http://lada.wald.intevation.org