Related to issue 18075: Automatic focus change shows only one available option in combo boxes
authorMartin Taal <martin.taal@openbravo.com>
Wed, 27 Jul 2011 06:04:45 +0200
changeset 13292 a9fcfad12078
parent 13291 71df089998c4
child 13293 2dc1e3222b4c
Related to issue 18075: Automatic focus change shows only one available option in combo boxes
Do not set addUnknownValues as this sometimes causes the picker to showup
Also removed selectOnFocus as this is now controlled on form level
modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
--- a/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js	Tue Jul 26 23:01:25 2011 +0200
+++ b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js	Wed Jul 27 06:04:45 2011 +0200
@@ -277,11 +277,10 @@
   hasPickList: true,
   popupTextMatchStyle: 'startswith',
   suggestionTextMatchStyle: 'startswith',
-  selectOnFocus: true,
   showOptionsFromDataSource: true,
-  // setting this to false means that the change handler is called when picking
-  // a value and not earlier
-  addUnknownValues: false,
+  // Setting this to false results in the picklist to be shown 
+  // on focus, specific SC logic
+  //  addUnknownValues: false,
   
   // ** {{{ selectorGridFields }}} **
   // the definition of the columns in the popup window