diff app/view/widget/Deskriptor.js @ 849:8de4ec66d0e6

Fixed expanding.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Jul 2015 12:40:56 +0200
parents afdbe3770b99
children 43f3a53d07d3
line wrap: on
line diff
--- a/app/view/widget/Deskriptor.js	Wed Jul 08 09:33:25 2015 +0200
+++ b/app/view/widget/Deskriptor.js	Wed Jul 08 12:40:56 2015 +0200
@@ -18,13 +18,14 @@
     triggerAction: 'all',
     typeAhead: false,
     layer: null,
-    queryMode: 'local',
+    queryMode: 'remote',
+    remoteFilter: true,
+
     listeners: {
-        expand: {
+        focus: {
             fn: function(field) {
                 if (field.up('deskriptor').layer === 0) {
                     field.store.proxy.extraParams = {'layer': field.up('deskriptor').layer};
-                    field.store.load();
                 }
                 else {
                     var parents = field.up('deskriptor').getParents(this);

http://lada.wald.intevation.org