details:   /erp/devel/pi/rev/fea3898e2750
changeset: 10535:fea3898e2750
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu Feb 10 18:03:29 2011 +0100
summary:   [process] Open higher browser popups for manual processes

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
 |  4 +++-
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-classic-popup.js
 |  6 ++++--
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
     |  6 +++---
 3 files changed, 10 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r a72fc7a2de23 -r fea3898e2750 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
      Thu Feb 10 17:36:19 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-action-button.js
      Thu Feb 10 18:03:29 2011 +0100
@@ -72,7 +72,9 @@
             id: this.id,
             command: this.command,
             tabTitle: this.title,
-            postParams: allProperties
+            postParams: allProperties,
+            height: 600, 
+            width: 900
           };
       callbackFunction = function(){
         OB.Layout.ViewManager.openView('OBPopupClassicWindow', popupParams);
diff -r a72fc7a2de23 -r fea3898e2750 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-classic-popup.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-classic-popup.js
      Thu Feb 10 17:36:19 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-classic-popup.js
      Thu Feb 10 18:03:29 2011 +0100
@@ -30,7 +30,9 @@
   showsItself: true,
   command : 'DEFAULT',
   appURL : OB.Application.contextUrl + 'security/Menu.html',
-  obManualURL: ''});
+  obManualURL: '',
+  height: 450, 
+  width: 625});
 
 isc.OBPopupClassicWindow.addMethods({
   show: function() {
@@ -46,7 +48,7 @@
       contentsURL = this.appURL + urlCharacter + 'Command=' + this.command + 
'&noprefs=true&tabId=' + this.tabId + '&hideMenu=true';
     }
     
-    OB.Utilities.openProcessPopup(contentsURL, false, this.postParams);
+    OB.Utilities.openProcessPopup(contentsURL, false, this.postParams, 
this.height, this.width);
   }
 });
 
diff -r a72fc7a2de23 -r fea3898e2750 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
  Thu Feb 10 17:36:19 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
  Thu Feb 10 18:03:29 2011 +0100
@@ -230,9 +230,9 @@
 //                     properties of this object to url as POST, other case a 
GET to url is
 //                     performed
 // frameset
-OB.Utilities.openProcessPopup = function(/* String */url, noFrameSet, 
postParams){
-  var height = 450;
-  var width = 625;
+OB.Utilities.openProcessPopup = function(/* String */url, noFrameSet, 
postParams, height, width){
+  height = height || 450;
+  width = width || 625;
   var top = (screen.height - height) / 2;
   var left = (screen.width - width) / 2;
   var adds = 'height=' + height + ', width=' + width + ', left=' + left +

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to