geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r991093 - /geronimo/server/trunk/plugins/console/console-filter/src/main/resources/XSRF.js
Date Tue, 31 Aug 2010 06:39:47 GMT
Author: genspring
Date: Tue Aug 31 06:39:47 2010
New Revision: 991093

URL: http://svn.apache.org/viewvc?rev=991093&view=rev
Log:
GERONIMO-5563 Clicking on application URL in console opens app in the console frame with controls
truncated.

Modified:
    geronimo/server/trunk/plugins/console/console-filter/src/main/resources/XSRF.js

Modified: geronimo/server/trunk/plugins/console/console-filter/src/main/resources/XSRF.js
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/console/console-filter/src/main/resources/XSRF.js?rev=991093&r1=991092&r2=991093&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/console/console-filter/src/main/resources/XSRF.js (original)
+++ geronimo/server/trunk/plugins/console/console-filter/src/main/resources/XSRF.js Tue Aug
31 06:39:47 2010
@@ -24,7 +24,17 @@ function updateLinks() {
             // add formId only if other attributes are present in link
             // Note: we cannot use setAttribute due to IE issues so we are using element.*=
             elements[i].href = link + '&formId=' + formID;
-        }
+        }
+        
+        if(link != null && link.indexOf("/console/portal/")==-1){
+        
+            if (document.all) {    //IE
+                elements[i].target="_parent";   
+            } else if (document.getElementById) {  //firefox
+               elements[i].setAttribute("target", "_parent");
+            }      
+             
+        }        
     }
 }
 



Mime
View raw message