You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by wo...@apache.org on 2010/03/09 16:55:50 UTC

svn commit: r920941 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/page-navigator.jsp

Author: woonsan
Date: Tue Mar  9 15:55:50 2010
New Revision: 920941

URL: http://svn.apache.org/viewvc?rev=920941&view=rev
Log:
JS2-1057: changing list item style class

Modified:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/page-navigator.jsp

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/page-navigator.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/page-navigator.jsp?rev=920941&r1=920940&r2=920941&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/page-navigator.jsp (original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/page-navigator.jsp Tue Mar  9 15:55:50 2010
@@ -56,7 +56,7 @@ private void printMenuItem(MenuElement e
     
     if (MenuElement.MENU_ELEMENT_TYPE.equals(type))
     {
-        out.write("<li type='" + type + "' nodeType='" + nodeType + "' editable='" + editable + "' path='" + path + "' class='expanded'>");
+        out.write("<li type='" + type + "' nodeType='" + nodeType + "' editable='" + editable + "' path='" + path + "' class='closed'>");
         out.write("<a href='#'>" + title + "</a>");
         out.write("\n");
         
@@ -66,7 +66,7 @@ private void printMenuItem(MenuElement e
 	        
 	        if (childElements != null && !childElements.isEmpty())
 	        {
-	            out.write("<ul>");
+	            out.write("<ul style='display: none'>");
 	            out.write("\n");
 	            
 	            for (MenuElement child : childElements)
@@ -84,7 +84,7 @@ private void printMenuItem(MenuElement e
     else if (MenuElement.OPTION_ELEMENT_TYPE.equals(type))
     {
         String url = ((MenuOption) element).getUrl();
-        out.write("<li type='" + type + "' nodeType='" + nodeType + "' editable='" + editable + "' path='" + path +"'>");
+        out.write("<li type='" + type + "' nodeType='" + nodeType + "' editable='" + editable + "' path='" + path +"' class='leaf'>");
         out.write("<div>");
         out.write("<a href='" + pageNavigator.getAbsoluteUrl(url, renderResponse, rc) + "'>" + title + "</a>");
         out.write("</div>");
@@ -123,7 +123,7 @@ Theme theme = (Theme) rc.getRequest().ge
 <%
 for (MenuElement element : menuElements)
 {
-    printMenuItem(element, 0, 0, out, renderRequest, renderResponse, rc, pageNavigator);
+    printMenuItem(element, 0, 1, out, renderRequest, renderResponse, rc, pageNavigator);
 }
 %>
       </ul>
@@ -139,7 +139,7 @@ if (!linkElements.isEmpty())
 <%
 for (MenuElement element : linkElements)
 {
-    printMenuItem(element, 0, 0, out, renderRequest, renderResponse, rc, pageNavigator);
+    printMenuItem(element, 0, 1, out, renderRequest, renderResponse, rc, pageNavigator);
 }
 %>
       </ul>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org