portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r926221 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/page-navigator.jsp
Date Mon, 22 Mar 2010 17:48:14 GMT
Author: woonsan
Date: Mon Mar 22 17:48:13 2010
New Revision: 926221

URL: http://svn.apache.org/viewvc?rev=926221&view=rev
Log:
JS2-1132: Refining link moving

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=926221&r1=926220&r2=926221&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
Mon Mar 22 17:48:13 2010
@@ -442,13 +442,18 @@ YUI().use('jetui-portal', 'io', 'json', 
         var target = args.complete[1];
         var targetPath = args.complete[2];
         if (listItem && target && targetPath) {
-            var pageNavMenu = Y.Node.one("#<portlet:namespace/>pageNavMenu");
+            var pageNav = null;
+            if (listItem.getAttribute("nodeType") == ".link" && target == "${space.path}")
{
+                pageNav = Y.Node.one("#<portlet:namespace/>pageNavLinks");
+            } else {
+                pageNav = Y.Node.one("#<portlet:namespace/>pageNavMenu");
+            }
             if (target == "${space.path}") {
                 var clonedListItem = listItem.cloneNode(true);
                 clonedListItem.setAttribute("path", targetPath);
-                pageNavMenu.append(clonedListItem);
+                pageNav.append(clonedListItem);
             } else {
-	            pageNavMenu.all("LI").each(function(v, k) {
+                pageNav.all("LI").each(function(v, k) {
 	                if (target == v.getAttribute("path")) {
 	                    var clonedListItem = listItem.cloneNode(true);
 	                    clonedListItem.setAttribute("path", targetPath);



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


Mime
View raw message