diff app/view/window/ProbeEdit.js @ 712:baef70abfe71

Cosmetics.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Apr 2015 10:52:15 +0200
parents f204f30b824a
children 2e478b3a587a
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js	Wed Apr 08 10:51:39 2015 +0200
+++ b/app/view/window/ProbeEdit.js	Wed Apr 08 10:52:15 2015 +0200
@@ -122,8 +122,8 @@
         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('An unhandled Failure occured. See following Response and Record');
+                console.log(action);
                 console.log(record);
              },
             success: function(record, response) {
@@ -154,11 +154,11 @@
         });
     },
 
-    enableAddMessungen: function(){
+    enableAddMessungen: function() {
         this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false);
     },
 
-    disableChildren: function(){
+    disableChildren: function() {
         if (!this.record.get('owner')) {
             // Disable only when the User is not the owner of the Probe
             // Works in symbiosis with success callback some lines above.
@@ -169,7 +169,7 @@
         this.down('fset[name=pkommentare]').down('pkommentargrid').setReadOnly(true);
     },
 
-    enableChildren: function(){
+    enableChildren: function() {
         this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false);
         this.down('fset[name=orte]').down('ortgrid').setReadOnly(false);
         this.down('fset[name=probenzusatzwerte]').down('probenzusatzwertgrid').setReadOnly(false);

http://lada.wald.intevation.org