geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r991094 - /geronimo/server/branches/2.2/plugins/console/console-filter/src/main/resources/XSRF.js
Date Tue, 31 Aug 2010 06:40:03 GMT
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");
+            }      
+             
+        }
     }
 }
 



Mime
View raw message