comparison app/view/Viewport.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 16fbbad55589
comparison
equal deleted inserted replaced
498:c1b77fb96b01 499:8b4ec61c5752
20 'Lada.view.search.List', 20 'Lada.view.search.List',
21 'Lada.view.proben.List' 21 'Lada.view.proben.List'
22 ], 22 ],
23 layout: 'fit', 23 layout: 'fit',
24 initComponent: function() { 24 initComponent: function() {
25 console.log('Setting up Viewport');
26 this.initSearch(); 25 this.initSearch();
27 26
28 // Development related: 27 // Development related:
29 // Disable "initSearch" call and enable one of the following init 28 // Disable "initSearch" call and enable one of the following init
30 // methods to get a dialog directly without the need to click through 29 // methods to get a dialog directly without the need to click through
50 var groups = info.get('groups'); 49 var groups = info.get('groups');
51 var groupinfo = Ext.getCmp('groupinfo'); 50 var groupinfo = Ext.getCmp('groupinfo');
52 var userinfo = Ext.getCmp('userinfo'); 51 var userinfo = Ext.getCmp('userinfo');
53 userinfo.update(user); 52 userinfo.update(user);
54 groupinfo.update(groups); 53 groupinfo.update(groups);
55 console.log(info);
56 } 54 }
57 }); 55 });
58 }, 56 },
59 /** 57 /**
60 * Function to initialize the edit window for a particular probe directly 58 * Function to initialize the edit window for a particular probe directly
122 store.load({ 120 store.load({
123 params: { 121 params: {
124 probeId: probeId 122 probeId: probeId
125 }, 123 },
126 callback: function() { 124 callback: function() {
127 console.log(store);
128 var messung = store.data.items[0]; 125 var messung = store.data.items[0];
129 console.log(store.data.items[0]);
130 kstore.load({ 126 kstore.load({
131 params: { 127 params: {
132 probeId: probeId, 128 probeId: probeId,
133 messungsId: messung.get('id').messungsId 129 messungsId: messung.get('id').messungsId
134 } 130 }
143 params: { 139 params: {
144 probeId: probeId, 140 probeId: probeId,
145 messungsId: messung.get('id').messungsId 141 messungsId: messung.get('id').messungsId
146 } 142 }
147 }); 143 });
148 console.log('Creating Messung window');
149 // var messung = Ext.create('Lada.model.Messung'); 144 // var messung = Ext.create('Lada.model.Messung');
150 Ext.create('Lada.view.messungen.Create', { 145 Ext.create('Lada.view.messungen.Create', {
151 model: messung 146 model: messung
152 }); 147 });
153 } 148 }

http://lada.wald.intevation.org