details:   /erp/devel/pi/rev/0a8a5d995740
changeset: 6508:0a8a5d995740
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Fri Feb 26 12:14:14 2010 +0100
summary:   Related to issue 12479: Now utils.js has relative references -part3

diffstat:

 web/js/utils.js |  32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diffs (58 lines):

diff -r b0e4fd2f413b -r 0a8a5d995740 web/js/utils.js
--- a/web/js/utils.js   Fri Feb 26 12:04:22 2010 +0100
+++ b/web/js/utils.js   Fri Feb 26 12:14:14 2010 +0100
@@ -2404,20 +2404,20 @@
 
 function executeWindowButton(id,focus) {
   if (focus==null) focus=false;
-  var appWindow = top;
-  if(top.frames['appFrame'] || top.frames['frameMenu']) {
-    appWindow = top.frames['appFrame'];
-  } else if (top.frames['superior']) {
-    appWindow = top.frames['superior'];
-  } else if (top.frames['frameSuperior']) {
-    appWindow = top.frames['frameSuperior'];
-  } else if (top.frames['frameButton']) {
-    appWindow = top.frames['frameButton'];
-  } else if (top.frames['mainframe']) {
-    appWindow = top.frames['mainframe'];
+  var appWindow = parent;
+  if(parent.frames['appFrame'] || parent.frames['frameMenu']) {
+    appWindow = parent.frames['appFrame'];
+  } else if (parent.frames['superior']) {
+    appWindow = parent.frames['superior'];
+  } else if (parent.frames['frameSuperior']) {
+    appWindow = parent.frames['frameSuperior'];
+  } else if (parent.frames['frameButton']) {
+    appWindow = parent.frames['frameButton'];
+  } else if (parent.frames['mainframe']) {
+    appWindow = parent.frames['mainframe'];
   }
   if (window.location.href.indexOf('ad_forms/Role.html') != -1) { //Exception 
for "Role" window
-    appWindow = top;
+    appWindow = parent;
   }
   if (appWindow.document.getElementById(id) && 
isVisibleElement(appWindow.document.getElementById(id), appWindow)) {
     if (focus==true) appWindow.document.getElementById(id).focus();
@@ -2427,9 +2427,9 @@
 }
 
 function executeMenuButton(id) {
-  var appWindow = top;
-  if(top.frames['appFrame'] || top.frames['frameMenu']) {
-    appWindow = top.frames['frameMenu'];
+  var appWindow = parent;
+  if(parent.frames['appFrame'] || parent.frames['frameMenu']) {
+    appWindow = parent.frames['frameMenu'];
   } 
   if (appWindow.document.getElementById(id) && 
isVisibleElement(appWindow.document.getElementById(id), appWindow)) {
     appWindow.document.getElementById(id).onclick();
@@ -2451,7 +2451,7 @@
 * @param {Boolean} grow If the window should 'grow' or set the new size 
immediately
 */
 function progressiveHideMenu(id, topSize, newSize, grow) {
-  var frame = top.document;
+  var frame = parent.document;
   var object = frame.getElementById(id);
   if (newSize==null) {
     var sizes = object.cols.split(",");

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to