You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/04/08 13:50:58 UTC
svn commit: r931894 -
/myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js
Author: lofwyr
Date: Thu Apr 8 11:50:57 2010
New Revision: 931894
URL: http://svn.apache.org/viewvc?rev=931894&view=rev
Log:
TOBAGO-832: Fix problems with menus in deeper than the first naming container: Using "replace all" instead of "replace first".
Modified:
myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js
Modified: myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js?rev=931894&r1=931893&r2=931894&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js (original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tobago-menu.js Thu Apr 8 11:50:57 2010
@@ -287,7 +287,7 @@ function tobagoUtil_findSubComponent(ele
}
function tobagoUtil_getSubComponentId(id, subId) {
- return "#" + id.replace(":", "\\:") + "\\:\\:" + subId;
+ return "#" + id.replace(/:/g, "\\:") + "\\:\\:" + subId;
}
function tobagoUtil_findSuperComponent(element) {
@@ -295,7 +295,7 @@ function tobagoUtil_findSuperComponent(e
}
function tobagoUtil_getSuperComponentId(id) {
- return "#" + id.substring(0, id.lastIndexOf("::")).replace(":", "\\:");
+ return "#" + id.substring(0, id.lastIndexOf("::")).replace(/:/g, "\\:");
}
xxx_tobagoMenuInit();