Author: vmassol
Date: 2008-02-26 16:39:26 +0100 (Tue, 26 Feb 2008)
New Revision: 7962

Modified:
   xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/xwiki.js
Log:
XSALBATROSS-17: Add Javascript function to open links having a rel attribute in 
separate windows

* Make it work on IE too

Modified: 
xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/xwiki.js
===================================================================
--- xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/xwiki.js  
2008-02-26 15:33:36 UTC (rev 7961)
+++ xwiki-platform/skins/trunk/albatross/src/main/resources/albatross/xwiki.js  
2008-02-26 15:39:26 UTC (rev 7962)
@@ -305,7 +305,7 @@
   var anchors = document.getElementsByTagName("a");
   for (var i=0; i<anchors.length; i++) {
     var anchor = anchors[i];
-    if (anchor.hasAttribute("href") && anchor.hasAttribute("rel")) { 
+    if (anchor.getAttribute("href") && anchor.getAttribute("rel")) { 
       // Since the rel attribute can have other values we need to only take 
into account the ones
       // starting with "_"
       var values = anchor.getAttribute("rel").split(" ");

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to