You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2006/04/03 13:57:58 UTC

svn commit: r391023 - /myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js

Author: mmarinschek
Date: Mon Apr  3 04:57:57 2006
New Revision: 391023

URL: http://svn.apache.org/viewcvs?rev=391023&view=rev
Log:
reverted patch applied by Bruno. Seems to have made the jscookmenu unfunctional.

Modified:
    myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js

Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js?rev=391023&r1=391022&r2=391023&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/navmenu/jscookmenu/resource/MyFacesHack.js Mon Apr  3 04:57:57 2006
@@ -15,15 +15,14 @@
     if (link != null)
     {
         // changes by Richard J. Barbalace
-        if (link.match(/^\w*:A\]\w*:\/\//) != null ) {
+        if (link.match(/^\w*:\w*:\/\//) != null ) {
             // Link is a URL
-            link = link.replace(/^\w*:A\]/, "");  // Remove JSF ID
+            link = link.replace(/^\w*:A/, "");  // Remove JSF ID
             window.open (link, target);
-        } else if (link.match(/^\w*:A\]/) != null ) {
+        } else if (link.match(/^\w*:\w*:/) != null ) {
             // Link is a script method
-            link = link.replace(/^\w*:A\]/, "");  // Remove JSF ID
-            eval(link);
-            // window.open (link, '_self');
+            link = link.replace(/^\w*:A/, "");  // Remove JSF ID
+            window.open (link, '_self');
         } else {
             // Link is a JSF action
             var dummyForm = document.forms[target];
@@ -57,4 +56,4 @@
                 obj.className = prefix + 'MenuItemHover';
         }
     }
-}
+}
\ No newline at end of file