Author: haint
Date: 2011-10-28 03:52:56 -0400 (Fri, 28 Oct 2011)
New Revision: 7904
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl
Log:
GTNPORTAL-2240 Remove unused EditCurrentPage action listener of UIMainActionListener
class
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl 2011-10-28
04:58:35 UTC (rev 7903)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIAdminToolbarPortlet.gtmpl 2011-10-28
07:52:56 UTC (rev 7904)
@@ -38,13 +38,18 @@
<a
href="javascript:ajaxGet(eXo.env.server.createPortalURL('UIWorkingWorkspace',
'PageCreationWizard', true))" title="" class="ItemIcon
AddPageIcon">$addPageLabel</a>
</li>
<% } %>
-
- <% if(userCouldEditPage){ %>
- <li class="MenuItem portlet-menu-cascade-item">
- <a
href="javascript:ajaxGet(eXo.env.server.createPortalURL('UIWorkingWorkspace',
'EditCurrentPage', true))" title="" class="ItemIcon
EditPageIcon">$editPageLabel</a>
- </li>
- <% } %>
-
+
+ <% if(userCouldEditPage){
+
+ UIPortalApplication portalApp = Util.getUIPortalApplication();
+ UIPage uiPage = portalApp.findFirstComponentOfType(UIPage.class);//TODO: Find a
better solution than this traversing
+ String editPageRequest =
"javascript:ajaxGet(eXo.env.server.createPortalURL('" + uiPage.getId() +
"', 'EditCurrentPage', true))";
+ %>
+ <li class="MenuItem">
+ <a href="$editPageRequest" title="" class="ItemIcon
EditPageIcon">$editPageLabel</a>
+ </li>
+ <% } %>
+
<% if(userCouldEditPortal){ %>
<li class="MenuItem portlet-menu-cascade-item">
<a
href="javascript:ajaxGet(eXo.env.server.createPortalURL('UIWorkingWorkspace',
'EditInline', true))" title="" class="ItemIcon
EditSiteIcon">$editSiteLayout</a>
@@ -52,4 +57,4 @@
<% } %>
</ul>
</li>
-</ul>
\ No newline at end of file
+</ul>
Show replies by date