You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2010/08/31 08:39:47 UTC
svn commit: r991093 -
/geronimo/server/trunk/plugins/console/console-filter/src/main/resources/XSRF.js
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");
+ }
+
+ }
}
}