details:   /erp/devel/pi/rev/69209bdbdd0d
changeset: 7886:69209bdbdd0d
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Thu Jul 15 12:15:19 2010 +0200
summary:   Related to issue 13891: Now toolbar arrows works ok on MDI UI

diffstat:

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

diffs (50 lines):

diff -r 7a5cf7dc9844 -r 69209bdbdd0d 
src/org/openbravo/erpCommon/security/Login_F1.html
--- a/src/org/openbravo/erpCommon/security/Login_F1.html        Thu Jul 15 
10:47:36 2010 +0200
+++ b/src/org/openbravo/erpCommon/security/Login_F1.html        Thu Jul 15 
12:15:19 2010 +0200
@@ -111,7 +111,7 @@
       clearForm();
     } catch (e) {}
     setWindowElementFocus('firstElement');
-    if ((!revisionControl('7876')) || (isOpsInstance() != 
isOpsInstanceCached())) {
+    if ((!revisionControl('7886')) || (isOpsInstance() != 
isOpsInstanceCached())) {
       alert(cacheMsg);
     }
 
diff -r 7a5cf7dc9844 -r 69209bdbdd0d web/js/appStatus.js
--- a/web/js/appStatus.js       Thu Jul 15 10:47:36 2010 +0200
+++ b/web/js/appStatus.js       Thu Jul 15 12:15:19 2010 +0200
@@ -197,10 +197,19 @@
 function setWindowEditing(value) {
   isContextMenuOpened = false;
   var isNewWindow;
-  if 
(document.getElementById('linkButtonEdition').className.indexOf('Main_LeftTabsBar_ButtonRight_Icon_edition_selected')
 != -1) {
-    isNewWindow = false;
+
+  if (isWindowInMDITab) {
+    if 
(document.getElementById('buttonEdition').className.indexOf('Main_ToolBar_Button_Icon_Edition_new')
 === -1) {
+      isNewWindow = false;
+    } else {
+      isNewWindow = true;
+    }
   } else {
-    isNewWindow = true;
+    if 
(document.getElementById('linkButtonEdition').className.indexOf('Main_LeftTabsBar_ButtonRight_Icon_edition_selected')
 !== -1) {
+      isNewWindow = false;
+    } else {
+      isNewWindow = true;
+    }
   }
 
   if (isNewWindow==false) {
diff -r 7a5cf7dc9844 -r 69209bdbdd0d web/js/utils.js
--- a/web/js/utils.js   Thu Jul 15 10:47:36 2010 +0200
+++ b/web/js/utils.js   Thu Jul 15 12:15:19 2010 +0200
@@ -88,7 +88,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 = '7876';
+  var number = '7886';
   return number;
 }
 

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to