details:   /erp/devel/pi/rev/654d5a441226
changeset: 12029:654d5a441226
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Fri May 06 12:35:15 2011 +0200
summary:   Solve issue with jumping to next field which was invisible

diffstat:

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

diffs (21 lines):

diff -r 4e7ad8281963 -r 654d5a441226 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Fri May 06 12:33:34 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Fri May 06 12:35:15 2011 +0200
@@ -1118,7 +1118,7 @@
   },
   
   focusInNextItem: function(currentItem) {
-    var flds = (this.grid ? this.grid.getFields() : this.getFields);
+    var flds = (this.grid ? this.grid.getFields() : this.getFields());
     var chooseNextItem, i, nextItem, length = flds.length;
     for (i = 0; i < length; i++) {
       var item = this.getItem(flds[i].name);
@@ -1128,7 +1128,7 @@
       // some items don't have a name, ignore those
       // !item.disabled because sometimes the whole form is disabled and needs 
to 
       // be focused after enabling (after the fic call returns)
-      if (chooseNextItem && item.name && item.isFocusable && 
(item.isFocusable() || !item.disabled)) {
+      if (chooseNextItem && item.name && item.isVisible() && item.isFocusable 
&& (item.isFocusable() || !item.disabled)) {
         nextItem = item;
         break;
       }

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to