diff app/controller/Orte.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 1643d74a40bb
line wrap: on
line diff
--- a/app/controller/Orte.js	Thu Nov 06 10:59:03 2014 +0100
+++ b/app/controller/Orte.js	Thu Nov 06 11:12:21 2014 +0100
@@ -27,7 +27,6 @@
     ],
 
     init: function() {
-        console.log('Initialising the Orte controller');
         this.callParent(arguments);
     },
 
@@ -63,14 +62,11 @@
     },
 
     createOrt: function() {
-        console.log('button clicked');
         var win = Ext.create('Lada.view.orte.CreateOrt', {});
         win.show();
     },
 
     saveNewOrt: function(button) {
-        console.log('button clicked');
-
         var form = button.up('window').down('form').getForm();
         var ortdetailstore = Ext.getStore('Ortedetails');
         var ortdetail = Ext.create('Lada.model.Ortdetail');
@@ -85,23 +81,18 @@
         ortdetailstore.add(ortdetail);
         ortdetailstore.sync({
             success: function(batch) {
-                console.log(batch);
                 var od = Ext.ComponentQuery.query('ortdetail');
-                console.log(od);
                 var response = batch.operations[0].resultSet.records[0].data;
                 od[0].setValue(response.ortId);
-                console.log('id:' + response.ortId);
                 button.up('window').close();
             },
             failure: function() {
-                console.log('Error on saving Ortdetails');
                 ortdetailstore.remove(ortdetail);
             }
         });
     },
 
     saveItem: function(button) {
-        console.log('Saving Ort');
         var form = button.up('window').down('form');
         var fform = form.getForm();
 
@@ -112,13 +103,11 @@
         var ortidfield = fform.findField('ortId');
         var ortid = ortidfield.getValue();
         if (ortid === null) {
-            console.log('New Ortdetail');
             ortdetail = Ext.create('Lada.model.Ortdetail');
             ortdetailstore.add(ortdetail);
             newortdetail = true;
         }
         else {
-            console.log('Editing Ortdetail');
             ortdetail = ortdetailstore.getById(ortid);
         }
 
@@ -143,14 +132,12 @@
                 ortidfield.setValue(ortid);
             },
             failure: function() {
-                console.log('Error on saving Ortdetails');
             }
         });
         form.commit();
     },
 
     addItem: function(button) {
-        console.log('Adding new Ort for Probe ' + button.probeId);
         var ort = Ext.create('Lada.model.Ort');
         ort.set('probeId', button.probeId);
         Ext.widget('ortecreate', {
@@ -159,9 +146,7 @@
     },
 
     editItem: function(grid, record) {
-        console.log('Editing Ort');
         record.getAuthInfo(this.initEditWindow);
-        console.log('Loaded Ort with ID ' + record.getId());
     },
 
     initEditWindow: function(record, readonly) {

http://lada.wald.intevation.org