Author: wesleyhales
Date: 2008-09-24 23:04:18 -0400 (Wed, 24 Sep 2008)
New Revision: 11974
Modified:
branches/JBoss_Portal_Branch_2_6/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_6/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp
===================================================================
---
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2008-09-25
02:45:48 UTC (rev 11973)
+++
branches/JBoss_Portal_Branch_2_6/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2008-09-25
03:04:18 UTC (rev 11974)
@@ -115,8 +115,14 @@
<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="info-container-<%= displayName
%>">
+ <div class="darktip" id=""
name="darktip<%=index%>">
<div class="toolbar" style="width: 250px;">
<div class="title"><%=
getLocalizedValue(portletMetaInfo.getMetaValue(MetaInfo.TITLE), locale) %>
</div>
@@ -130,12 +136,22 @@
</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);
+ }
+ </script>
+
<tr class="<%= rowClass %>">
<td>
<img src="<%= iconLocation %>" align="middle"
style="margin:0 4px 0 0" alt="icon"/>
- <span onmouseover="domTT_activate(this, event, 'content',
document.getElementById('info-container-<%= displayName
%>'),'delay', 0, 'trail', false, 'fade', 'both',
'fadeMax', 95, 'styleClass', 'none');"><a
+ <span onmouseover="domTT_activate(this, event, 'content',
document.getElementById(infoContainerId<%=index%>),'delay', 0,
'trail', false, 'fade', 'both', 'fadeMax', 95,
'styleClass', 'none');"><a
href="<%= url %>" id="<%= linkId
%>"><%= displayName %>
</a></span></td>
</tr>