comparison app/controller/Kommentare.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 fbe81214026a
comparison
equal deleted inserted replaced
498:c1b77fb96b01 499:8b4ec61c5752
23 models: [ 23 models: [
24 'KommentarP' 24 'KommentarP'
25 ], 25 ],
26 26
27 init: function() { 27 init: function() {
28 console.log('Initialising the Kommentare controller');
29 this.callParent(); 28 this.callParent();
30 }, 29 },
31 30
32 addListeners: function() { 31 addListeners: function() {
33 this.control({ 32 this.control({
49 } 48 }
50 }); 49 });
51 }, 50 },
52 51
53 addItem: function(button) { 52 addItem: function(button) {
54 console.log('Adding new Kommentar for Probe ' + button.probeId);
55 var kommentar = Ext.create('Lada.model.KommentarP'); 53 var kommentar = Ext.create('Lada.model.KommentarP');
56 kommentar.set('probeId', button.probeId); 54 kommentar.set('probeId', button.probeId);
57 Ext.widget('kommentarecreate', { 55 Ext.widget('kommentarecreate', {
58 model: kommentar 56 model: kommentar
59 }); 57 });
60 }, 58 },
61 59
62 editItem: function(grid, record) { 60 editItem: function(grid, record) {
63 console.log('Editing Kommentar');
64 record.getAuthInfo(this.initEditWindow); 61 record.getAuthInfo(this.initEditWindow);
65 console.log('Loaded Kommentar with ID ' + record.getId());
66 }, 62 },
67 63
68 initEditWindow: function(record, readonly) { 64 initEditWindow: function(record, readonly) {
69 var view = Ext.widget('kommentarecreate', { 65 var view = Ext.widget('kommentarecreate', {
70 model: record 66 model: record

http://lada.wald.intevation.org