details:   /erp/devel/pi/rev/e3cd8b5b827c
changeset: 13098:e3cd8b5b827c
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Tue Jul 05 11:34:58 2011 +0200
summary:   fixed bug 17887: No possible to execute processes in some configs

  When closing process popup do not take into account complete context url as
  it might differ the one from browser with the one sent from server (i.e. 
port).

  Now just using context name

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
 |  14 +++------
 1 files changed, 5 insertions(+), 9 deletions(-)

diffs (29 lines):

diff -r 325becdccad4 -r e3cd8b5b827c 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
      Tue Jul 05 09:18:16 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
      Tue Jul 05 11:34:58 2011 +0200
@@ -128,20 +128,16 @@
     }
 
     OB.ActionButton.executingProcess = null;
-    
+
     if (newWindow) {
-      var contextURL = location.protocol + '//' +
-                       location.host +
-                       location.pathname.substr(0, 
location.pathname.indexOf(OB.Application.contextUrl) + 
OB.Application.contextUrl.length);
-      
-      if (newWindow.indexOf(contextURL) !== -1){
-        newWindow = newWindow.substr(contextURL.length);
+      if (OB.Application.contextUrl && 
newWindow.indexOf(OB.Application.contextUrl) !== -1) {
+        newWindow = 
newWindow.substr(newWindow.indexOf(OB.Application.contextUrl) + 
OB.Application.contextUrl.length-1);
       }
-      
+
       if (!newWindow.startsWith('/')){
         newWindow = '/'+newWindow;
       }
-      
+
       if (newWindow.startsWith(contextView.mapping250)) {
         // Refreshing current tab, do not open it again.
         return;

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to