details:   https://code.openbravo.com/erp/devel/pi/rev/6c0452815569
changeset: 13962:6c0452815569
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed Oct 12 22:51:25 2011 +0200
summary:   Fixes issue 18766: Layout of link dialog broken

details:   https://code.openbravo.com/erp/devel/pi/rev/b83c1fc7a6b8
changeset: 13963:b83c1fc7a6b8
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed Oct 12 22:51:45 2011 +0200
summary:   Fixes issue 18739: Business Partner selector overwrites first typed 
letter

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
  |  11 ++++++++++
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
 |   3 +-
 2 files changed, 13 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r cfaaa1445dcd -r b83c1fc7a6b8 
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
     Wed Oct 12 18:18:13 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Wed Oct 12 22:51:45 2011 +0200
@@ -1593,9 +1593,20 @@
   // always suppress focus when showing errors, we do focus handling
   // explicitly
   showFieldErrors: function (fieldName, suppressAutoFocus) {
+    // temporary set selectonfocus to false
+    // until after the redraw, to prevent this issue
+    // https://issues.openbravo.com/view.php?id=18739
+    this.previousSelectOnFocus = this.selectOnFocus;
+    this.selectOnFocus = false;
     this.Super('showFieldErrors', [fieldName, true]);
   },
   
+  redraw: function() {
+    this.Super('redraw', arguments);
+    this.selectOnFocus = this.previousSelectOnFocus;
+    delete this.previousSelectOnFocus;
+  },
+  
   destroy: function () {
     var i, item, items = this.getItems(), len = items.length, 
       ds, dataSources = [];
diff -r cfaaa1445dcd -r b83c1fc7a6b8 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
    Wed Oct 12 18:18:13 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
    Wed Oct 12 22:51:45 2011 +0200
@@ -310,7 +310,8 @@
         overflow: 'visible',
         fields: [{
           type: 'OBTextAreaItem', selectOnFocus: true, 
-          width: 390, height: 50, canFocus: true, 
+          width: 390, height: 50, canFocus: true,
+          showTitle: false,
           name:'url', 
           title: OB.I18N.getLabel('OBUIAPP_PasteLink'), value: url},
           {

------------------------------------------------------------------------------
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. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to