details:   https://code.openbravo.com/erp/devel/pi/rev/cb9504e6b9df
changeset: 14797:cb9504e6b9df
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Mon Dec 05 16:01:40 2011 +0100
summary:   Related to issue 19246 Combo boxes in selectors are not working well 
under some circumstances

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
 |  8 ++++++++
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
        |  4 ++++
 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
            |  5 ++++-
 3 files changed, 16 insertions(+), 1 deletions(-)

diffs (61 lines):

diff -r c6e9368b0887 -r cb9504e6b9df 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
       Mon Dec 05 15:52:39 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
       Mon Dec 05 16:01:40 2011 +0100
@@ -61,6 +61,10 @@
   // after leaving the quantity field the next time the rangeitem is visited 
the 
   // focus should go to the value field again
   blur: function() {
+    if (this.form && this.form._isRedrawing) {
+      return;
+    }
+
     this.Super('blur', arguments);
     this.form.setFocusItem(this.form.getItem('valueField'));
   }
@@ -257,6 +261,10 @@
   },
   
   blur: function() {
+    if (this.form && this.form._isRedrawing) {
+      return;
+    }
+
     if (this.expandSingleValue()) {
       this.form.grid.performAction();
     }    
diff -r c6e9368b0887 -r cb9504e6b9df 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
      Mon Dec 05 15:52:39 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-number.js
      Mon Dec 05 16:01:40 2011 +0100
@@ -429,6 +429,10 @@
   blur: function(){
     var value;
     
+    if (this.form && this.form._isRedrawing) {
+      return;
+    }
+
     // prevent validation/blurhandling when we are showing the editor and 
moving
     // the focus around
     if (this.form && this.form.grid && this.form.grid._showingEditor) {
diff -r c6e9368b0887 -r cb9504e6b9df 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- 
a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
  Mon Dec 05 15:52:39 2011 +0100
+++ 
b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
  Mon Dec 05 16:01:40 2011 +0100
@@ -507,6 +507,9 @@
   },
   
   blur: function(form, item){
+    if (this.form && this.form._isRedrawing) {
+      return;
+    }
     if (item._hasChanged && form && form.handleItemChange) {
       form.handleItemChange(item);
     }
@@ -515,7 +518,7 @@
   // prevent a jscript error in ie when closing a tab
   // https://issues.openbravo.com/view.php?id=18890
   blurItem: function() {
-    if (!this.form || this.form.destroyed) {
+    if (!this.form || this.form.destroyed || this.form._isRedrawing) {
       return;
     }
     this.Super('blurItem', arguments);

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to