diff app/view/window/ProbeEdit.js @ 696:b0f1dcdf981d

Made the unhandled Errors more talkativew
author Dustin Demuth <dustin@intevation.de>
date Thu, 26 Mar 2015 16:26:24 +0100
parents 817524db4017
children 3e4be37e3e46
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js	Thu Mar 26 16:24:13 2015 +0100
+++ b/app/view/window/ProbeEdit.js	Thu Mar 26 16:26:24 2015 +0100
@@ -112,7 +112,10 @@
         Ext.ClassManager.get('Lada.model.Probe').load(this.record.get('id'), {
             failure: function(record, action) {
                 // TODO
-            },
+                console.log("An unhandled Failure occured. See following Response and Record");
+                console.log(response);
+                console.log(record);
+             },
             success: function(record, response) {
                 this.down('probeform').setRecord(record);
                 this.record = record;
@@ -131,6 +134,8 @@
 
             //The Owner of a Probe is always allowed to add a Messung.
             // ToDo ist it required to check if a Status exists?
+            // ToDo this doesn't work here because the owner is unknown when this code
+            //   is executed.
             if (this.record.get('owner') == true){
                 //allow to add Messungen
                 this.down('fset[name=messungen]').down('messunggrid').down('button[name=add]').enable();

http://lada.wald.intevation.org