[portal-commits] JBoss Portal SVN: r11982 - branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content.
portal-commits at lists.jboss.org
portal-commits at lists.jboss.org
Thu Sep 25 10:50:14 EDT 2008
Author: wesleyhales
Date: 2008-09-25 10:50:14 -0400 (Thu, 25 Sep 2008)
New Revision: 11982
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
Log:
https://jira.jboss.org/jira/browse/JBPORTAL-2175
Modified: branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
===================================================================
--- branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2008-09-25 13:05:42 UTC (rev 11981)
+++ branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2008-09-25 14:50:14 UTC (rev 11982)
@@ -133,20 +133,15 @@
String iconLocation = getIcon(info);
String linkId="portlet-instance-link"+"_"+index;
+ String displayNameId = "info-container-" + displayName.replace("'","/'");
%>
<portlet:actionURL var="url">
<portlet:param name="content.action.select" value="true"/>
<portlet:param name="content.uri" value="<%= instance.getId() %>"/>
</portlet:actionURL>
- <script type="text/javascript">
- //escape single quote and others for js
- var infoContainerId<%=index%> = "<%= displayName %>".replace(/'/,"/'");
- infoContainerId<%=index%> = 'info-container-' + infoContainerId<%=index%>;
- </script>
-
<div style="display:none">
- <div class="darktip" id="" name="darktip<%=index%>">
+ <div class="darktip" id="<%=displayNameId%>">
<div class="toolbar" style="width: 250px;">
<div class="title"><%= getLocalizedValue(portletMetaInfo.getMetaValue(MetaInfo.TITLE), locale) %>
</div>
@@ -160,13 +155,10 @@
</div>
</div>
</div>
+
<script type="text/javascript">
- //assign dynamically generated id
- var darktip<%=index%> = document.getElementsByName('darktip<%=index%>')[0];
- try{
- darktip<%=index%>.setAttribute("id", infoContainerId<%=index%>);
- }catch(e){
- //alert(e);
+ function showToolTip<%=index%>(element,event){
+ return domTT_activate(element, event, "content", document.getElementById("<%=displayNameId%>"),"delay", 0, "trail", false, "fade", "both", "fadeMax", 95, "styleClass", "none");
}
</script>
@@ -174,7 +166,7 @@
<td>
<img src="<%= iconLocation %>" align="middle" class="editor-icon" alt="icon"/>
<span
- onmouseover="domTT_activate(this, event, 'content', document.getElementById(infoContainerId<%=index%>),'delay', 0, 'trail', false, 'fade', 'both', 'fadeMax', 95, 'styleClass', 'none');"><a
+ onmouseover="showToolTip<%=index%>(this,event);"><a
href="javascript:void(0);" onclick="submitForm('<%= url %>');return false"
id="<%= linkId %>"><%= displayName %>
</a></span>
More information about the portal-commits
mailing list