Author: wesleyhales
Date: 2008-09-24 22:45:48 -0400 (Wed, 24 Sep 2008)
New Revision: 11973
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-24
23:07:35 UTC (rev 11972)
+++
branches/JBoss_Portal_Branch_2_7/core/src/resources/portal-core-war/WEB-INF/jsp/content/portlet_editor.jsp 2008-09-25
02:45:48 UTC (rev 11973)
@@ -139,8 +139,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>
@@ -154,11 +160,21 @@
</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" class="editor-icon" 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
+ onmouseover="domTT_activate(this, event, 'content',
document.getElementById(infoContainerId<%=index%>),'delay', 0,
'trail', false, 'fade', 'both', 'fadeMax', 95,
'styleClass', 'none');"><a
href="javascript:void(0);"
onclick="submitForm('<%= url %>');return false"
id="<%= linkId %>"><%= displayName %>
</a></span>