[Lada-commits] [PATCH] Disabled trigger for combobox and request data if two chars typed

Wald Commits scm-commit at wald.intevation.org
Wed Oct 9 14:45:07 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1381322909 -7200
# Node ID a4eb98a6ea20237d644d89319323318871fd4915
# Parent  0814c50caa817cd2d2373983fbd1200cbcfb996a
Disabled trigger for combobox and request data if two chars typed.

diff -r 0814c50caa81 -r a4eb98a6ea20 app/view/widgets/Verwaltungseinheit.js
--- a/app/view/widgets/Verwaltungseinheit.js	Wed Oct 09 10:13:32 2013 +0200
+++ b/app/view/widgets/Verwaltungseinheit.js	Wed Oct 09 14:48:29 2013 +0200
@@ -8,12 +8,13 @@
         displayField: 'bezeichnung',
         valueField: 'gemId',
         emptyText:'Wählen Sie eine Verwaltungseinheit',
+        hideTrigger: true,
         // Enable filtering of comboboxes
         autoSelect: false,
         queryMode: 'remote',
-        triggerAction : 'all',
+        triggerAction : 'type',
         typeAhead: true,
-        minChars: 0,
+        minChars: 2,
     initComponent: function() {
         this.callParent(arguments);
     }


More information about the Lada-commits mailing list