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:40:03 UTC
svn commit: r991094 -
/geronimo/server/branches/2.2/plugins/console/console-filter/src/main/resources/XSRF.js
Author: genspring
Date: Tue Aug 31 06:40:03 2010
New Revision: 991094
URL: http://svn.apache.org/viewvc?rev=991094&view=rev
Log:
GERONIMO-5563 Clicking on application URL in console opens app in the console frame with controls truncated.
Modified:
geronimo/server/branches/2.2/plugins/console/console-filter/src/main/resources/XSRF.js
Modified: geronimo/server/branches/2.2/plugins/console/console-filter/src/main/resources/XSRF.js
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/console/console-filter/src/main/resources/XSRF.js?rev=991094&r1=991093&r2=991094&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/console/console-filter/src/main/resources/XSRF.js (original)
+++ geronimo/server/branches/2.2/plugins/console/console-filter/src/main/resources/XSRF.js Tue Aug 31 06:40:03 2010
@@ -25,6 +25,16 @@ function updateLinks() {
// 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");
+ }
+
+ }
}
}