changeset 173:1a11ae666f11

Added options to open dialogs directly without the need to click through the applications.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 03 Jul 2013 16:49:41 +0200
parents cfa0cc437781
children b0dcaaadb079
files app/view/Viewport.js
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
     }
 });

http://lada.wald.intevation.org