[Lada-commits] [PATCH 2 of 5] Added options to open dialogs directly without the need to click through the

Wald Commits scm-commit at wald.intevation.org
Wed Jul 3 17:14:16 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1372862981 -7200
# Node ID 1a11ae666f11273f60ed287c93108f9c03d53b42
# Parent  cfa0cc437781671f32517651858e08d1a78d1b94
Added options to open dialogs directly without the need to click through the
applications.

diff -r cfa0cc437781 -r 1a11ae666f11 app/view/Viewport.js
--- a/app/view/Viewport.js	Wed Jul 03 16:34:32 2013 +0200
+++ b/app/view/Viewport.js	Wed Jul 03 16:49:41 2013 +0200
@@ -6,8 +6,24 @@
         'Lada.view.search.Query2',
         'Lada.view.proben.List'
     ],
+
     initComponent: function() {
         console.log('Setting up Viewport');
+        this.initSearch();
+
+        // Development related: 
+        // Disable "initSearch" call and enable one of the following init
+        // methods to get a dialog directly without the need to click through
+        // the whole application.
+        //this.initMessung();
+
+        this.callParent(arguments);
+    },
+    initMessung: function() {
+        var messung = Ext.create('Lada.model.Messung');
+        var win = Ext.create('Lada.view.messungen.Create', {model: messung});
+    },
+    initSearch: function() {
         this.items = {
             xtype: 'panel',
             title: '<center>Probenauswahlmaske</center>',
@@ -60,6 +76,5 @@
                 }
             ]
         };
-        this.callParent(arguments);
     }
 });


More information about the Lada-commits mailing list