comparison 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
comparison
equal deleted inserted replaced
845:613ad3263e59 849:8de4ec66d0e6
16 valueField: 'id', 16 valueField: 'id',
17 // Enable filtering of comboboxes 17 // Enable filtering of comboboxes
18 triggerAction: 'all', 18 triggerAction: 'all',
19 typeAhead: false, 19 typeAhead: false,
20 layer: null, 20 layer: null,
21 queryMode: 'local', 21 queryMode: 'remote',
22 remoteFilter: true,
23
22 listeners: { 24 listeners: {
23 expand: { 25 focus: {
24 fn: function(field) { 26 fn: function(field) {
25 if (field.up('deskriptor').layer === 0) { 27 if (field.up('deskriptor').layer === 0) {
26 field.store.proxy.extraParams = {'layer': field.up('deskriptor').layer}; 28 field.store.proxy.extraParams = {'layer': field.up('deskriptor').layer};
27 field.store.load();
28 } 29 }
29 else { 30 else {
30 var parents = field.up('deskriptor').getParents(this); 31 var parents = field.up('deskriptor').getParents(this);
31 if (parents !== '') { 32 if (parents !== '') {
32 field.store.proxy.extraParams = { 33 field.store.proxy.extraParams = {

http://lada.wald.intevation.org