portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r921964 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/page-navigator.jsp
Date Thu, 11 Mar 2010 18:02:49 GMT
Author: woonsan
Date: Thu Mar 11 18:02:48 2010
New Revision: 921964

URL: http://svn.apache.org/viewvc?rev=921964&view=rev
Log:
JS2-1057: Fixing the misuse of css selector during selecting children of UL.

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=921964&r1=921963&r2=921964&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
Thu Mar 11 18:02:48 2010
@@ -240,6 +240,10 @@ YUI().use('jetui-portal', 'io', 'json', 
     var onMenuItemClick = function(e) {
         var a = e.target;
         var menuitem = a.get("parentNode");
+        var radio = menuitem.one("INPUT");
+        if (radio) {
+            radio.set("checked", "true");
+        }
         var submenu = menuitem.one("UL");
         if (submenu) {
             if (submenu.getStyle("display") == "none") {
@@ -576,11 +580,11 @@ YUI().use('jetui-portal', 'io', 'json', 
         modalPanelEventHandles = [];
         
         var targetSubFolders = Y.Node.one("#<portlet:namespace/>targetSubFolders");
-        targetSubFolders.all("LI").each(function(v, k) {
+        targetSubFolders.get("children").each(function(v, k) {
             v.remove();
         });
         var pageNavMenu = Y.Node.one("#<portlet:namespace/>pageNavMenu");
-        pageNavMenu.all("LI").each(function(v, k) {
+        pageNavMenu.get("children").each(function(v, k) {
             if (v.getAttribute("nodeType") == "folder") {
                 var cloned = v.cloneNode(true);
                 cloned.all("LI").each(function(v2, k2) {



---------------------------------------------------------------------
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