details:   /erp/devel/pi/rev/49bda7d3d580
changeset: 6778:49bda7d3d580
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Mon Mar 22 17:50:35 2010 +0100
summary:   Related to issue 12046: Now selectors opened with ENTER key opens 
properly in FF3.6

diffstat:

 src/org/openbravo/erpCommon/security/Login_F1.html |  2 +-
 web/js/searchs.js                                  |  4 ++--
 web/js/utils.js                                    |  2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 52c228e6b546 -r 49bda7d3d580 
src/org/openbravo/erpCommon/security/Login_F1.html
--- a/src/org/openbravo/erpCommon/security/Login_F1.html        Mon Mar 22 
13:11:15 2010 +0100
+++ b/src/org/openbravo/erpCommon/security/Login_F1.html        Mon Mar 22 
17:50:35 2010 +0100
@@ -90,7 +90,7 @@
       clearForm();
     } catch (e) {}
     setWindowElementFocus('firstElement');
-    if ((!revisionControl('6734')) || (isOpsInstance() != 
isOpsInstanceCached())) {
+    if ((!revisionControl('6778')) || (isOpsInstance() != 
isOpsInstanceCached())) {
       alert(cacheMsg);
     }
 
diff -r 52c228e6b546 -r 49bda7d3d580 web/js/searchs.js
--- a/web/js/searchs.js Mon Mar 22 13:11:15 2010 +0100
+++ b/web/js/searchs.js Mon Mar 22 17:50:35 2010 +0100
@@ -101,8 +101,8 @@
   var complements = complementsNS4 + "height=" + strHeight + ", width=" + 
strWidth + ", left=" + strLeft + ", top=" + strTop + ", screenX=" + strLeft + 
", screenY=" + strTop + ", location=0, resizable=0, scrollbars=1, status=0, 
toolbar=0, titlebar=0";
   winSelector = window.open(strPage + ((auxField=="")?"":"?" + auxField), 
strWindow, complements);
   if (winSelector!=null) {
-    if (hidden) window.focus();
-    else winSelector.focus();
+    /*if (hidden) window.focus();  //Useless since window.focus() after 
window.open it doesn't run in most browsers. Also in case of selectors with a 
non-existing search value can open the popup in the background in FF3.6
+    else*/ winSelector.focus();
     //winSelector.onunload = function(){top.opener.closeWindowSearch();};
     enableEvents();
   }
diff -r 52c228e6b546 -r 49bda7d3d580 web/js/utils.js
--- a/web/js/utils.js   Mon Mar 22 13:11:15 2010 +0100
+++ b/web/js/utils.js   Mon Mar 22 17:50:35 2010 +0100
@@ -74,7 +74,7 @@
 * Return a number that would be checked at the Login screen to know if the 
file is cached with the correct version
 */
 function getCurrentRevision() {
-  var number = '6734';
+  var number = '6778';
   return number;
 }
 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to