diff app/view/messungen/Create.js @ 491:850ccfe5f3c4

Code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 23:23:32 +0100
parents d00cc841a876
children 7c0653e8d9f7
line wrap: on
line diff
--- a/app/view/messungen/Create.js	Fri Oct 31 21:28:31 2014 +0100
+++ b/app/view/messungen/Create.js	Fri Oct 31 23:23:32 2014 +0100
@@ -12,32 +12,30 @@
 Ext.define('Lada.view.messungen.Create', {
     extend: 'Ext.window.Window',
     alias: 'widget.messungencreate',
+    requires: [
+        'Lada.view.messungen.CreateForm'
+    ],
 
     title: 'Maske für Messungen',
     autoShow: true,
     autoScroll: true,
     modal: true,
 
-    requires: [
-        'Lada.view.messungen.CreateForm'
-    ],
     initComponent: function() {
-        this.buttons = [
-            {
-                text: 'Speichern',
-                scope: form,
-                action: 'save'
-            },
-            {
-                text: 'Abbrechen',
-                scope: this,
-                handler: this.close
-            }
-        ];
+        this.buttons = [{
+            text: 'Speichern',
+            scope: form,
+            action: 'save'
+        }, {
+            text: 'Abbrechen',
+            scope: this,
+            handler: this.close
+        }];
         this.width = Ext.getBody().getViewSize().width - 30;
         this.height = Ext.getBody().getViewSize().height - 30;
-        var form = Ext.create('Lada.view.messungen.CreateForm', this.initialConfig);
+        var form = Ext.create('Lada.view.messungen.CreateForm',
+            this.initialConfig);
         this.items = [form];
-        this.callParent();
+        this.callParent(arguments);
     }
 });

http://lada.wald.intevation.org