diff app/view/search/List.js @ 31:897e3100c6da

Changed logic of the Probenauswahl. Now logic works like the BFS version.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 21 May 2013 17:53:51 +0200
parents 4d60b9ebce15
children 5a977bf18619
line wrap: on
line diff
--- a/app/view/search/List.js	Thu May 16 18:26:05 2013 +0200
+++ b/app/view/search/List.js	Tue May 21 17:53:51 2013 +0200
@@ -1,31 +1,19 @@
 Ext.define('Lada.view.search.List' ,{
-        extend: 'Ext.form.ComboBox',
-        alias: 'widget.queryselector',
-        store: 'Sql',
-        displayField:'name',
-        valueField: 'id' ,
-        emptyText:'Wählen Sie eine Abfrage',
-        //typeAhead: true,
-        //mode: 'local',
-        //triggerAction: 'all',
-        //selectOnFocus:true,
+    extend: 'Ext.form.FieldSet',
+    title: 'SQL-Auswahl',
+    alias: 'widget.queryselector',
 
     initComponent: function() {
+        this.items = [
+            {
+                id: 'search',
+                xtype: 'combobox',
+                store: 'Sql',
+                displayField:'name',
+                valueField:'id',
+                emptyText:'Wählen Sie eine Abfrage'
+            }
+        ];
         this.callParent(arguments);
     }
 });
-//Ext.define('Lada.view.search.List' ,{
-//    extend: 'Ext.grid.Panel',
-//    alias: 'widget.queryselector',
-//    store: 'Sql',
-//
-//    initComponent: function() {
-//        this.columns = [
-//            {header: 'ID',  dataIndex: 'id',  flex: 1},
-//            {header: 'Kurzname', dataIndex: 'name', flex: 1},
-//            {header: 'SQL', dataIndex: 'desc', flex: 1}
-//        ];
-//
-//        this.callParent(arguments);
-//    }
-//});

http://lada.wald.intevation.org