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/01/30 17:18:52 UTC

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

Author: mmarinschek
Date: Mon Jan 30 08:18:45 2006
New Revision: 373543

URL: http://svn.apache.org/viewcvs?rev=373543&view=rev
Log:
fixed problem with new prefix A for actions

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=373543&r1=373542&r2=373543&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 Jan 30 08:18:45 2006
@@ -17,11 +17,11 @@
         // changes by Richard J. Barbalace
         if (link.match(/^\w*:\w*:\/\//) != null ) {
             // Link is a URL
-            link = link.replace(/^\w*:/, "");  // Remove JSF ID
+            link = link.replace(/^\w*:A/, "");  // Remove JSF ID
             window.open (link, target);
         } else if (link.match(/^\w*:\w*:/) != null ) {
             // Link is a script method
-            link = link.replace(/^\w*:/, "");  // Remove JSF ID
+            link = link.replace(/^\w*:A/, "");  // Remove JSF ID
             window.open (link, '_self');
         } else {
             // Link is a JSF action