Fixes issue 19874: Business partner field does not get completely selected
authorMartin Taal <martin.taal@openbravo.com>
Sat, 25 Feb 2012 22:04:46 +0100
changeset 15618 53ba4554c028
parent 15617 ae5795104d22
child 15619 5c826f295b19
Fixes issue 19874: Business partner field does not get completely selected
Explicitly select the value when moving focus to the next field on picking a value
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Sat Feb 25 20:43:23 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Sat Feb 25 22:04:46 2012 +0100
@@ -1531,6 +1531,7 @@
     this.computeFocusItem(this.getField(currentItemName));
     if (this.getFocusItem()) {
       this.getFocusItem().focusInItem();
+      this.selectFocusItemValue();
     }
   },