details:   https://code.openbravo.com/erp/devel/pi/rev/68caae8e955a
changeset: 18589:68caae8e955a
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Wed Nov 21 11:54:49 2012 +0100
summary:   Fixes Issue 0021882: Business partner selector fails with display 
logic

diffstat:

 
modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
 |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r efa2063fd323 -r 68caae8e955a 
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
      Wed Nov 21 17:16:23 2012 +0100
+++ 
b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
      Wed Nov 21 11:54:49 2012 +0100
@@ -407,6 +407,8 @@
     if (!newValue) {
       this.setValueFromRecord(null);
     }
+    //Setting the element value again to align the cursor position correctly.
+    this.setElementValue(newValue);
   },
 
   setPickListWidth: function () {
@@ -626,6 +628,9 @@
     if (this.form.getFocusItem() !== this && !this.form.view.isShowingForm && 
this.getEnteredValue() === '' && this.savedEnteredValue) {
       this.setElementValue(this.savedEnteredValue);
       delete this.savedEnteredValue;
+    } else if (this.form.view.isShowingForm && this.getEnteredValue() === '' 
&& this.savedEnteredValue) {
+      this.setElementValue(this.savedEnteredValue);
+      delete this.savedEnteredValue;
     }
 
     var criteria = this.getPickListFilterCriteria(),

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to