portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r929130 - /portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp
Date Tue, 30 Mar 2010 13:30:12 GMT
Author: woonsan
Date: Tue Mar 30 13:30:12 2010
New Revision: 929130

URL: http://svn.apache.org/viewvc?rev=929130&view=rev
Log:
JS2-1167: Fixing cookie path problem in toolbox portlet.

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

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp?rev=929130&r1=929129&r2=929130&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/toolbox/toolbox.jsp
Tue Mar 30 13:30:12 2010
@@ -346,10 +346,10 @@ YUI().use('jetui-portal', 'io', 'json', 
         Y.Node.one("#<portlet:namespace/>themeTab").setStyle("display", "none");
         Y.Node.one("#<portlet:namespace/>" + tabId + "Tab").setStyle("display", "");
         
-        Y.Cookie.set("toolboxtab", tabId);
+        Y.Cookie.setSub("JS2TOOLBOX", "TAB", tabId, { path: "/" });
 
         if (tabId == "portlets") {
-	        var category = Y.Cookie.get("toolboxcat");
+	        var category = Y.Cookie.getSub("JS2TOOLBOX", "CAT");
 	        if (!category) {
 		        category = "${defaultCategory}";
 	        }
@@ -467,7 +467,7 @@ YUI().use('jetui-portal', 'io', 'json', 
         if (!keywords) {
             keywords = category;
         }
-        Y.Cookie.set("toolboxcat", category);
+        Y.Cookie.setSub("JS2TOOLBOX", "CAT", category, { path: "/" });
         var uri = "${portalContextPath}/services/portletregistry/definition/?_type=json";
         uri += "&max=" + pagination.portlet.pageSize + "&begin=0";
         uri += "&query=" + encodeURIComponent(keywords);
@@ -637,7 +637,7 @@ YUI().use('jetui-portal', 'io', 'json', 
     });
     Y.one("#<portlet:namespace/>pageNavIndex").on("change", onPortletPaginationSelectChange);
     
-    var tabId = Y.Cookie.get("toolboxtab");
+    var tabId = Y.Cookie.getSub("JS2TOOLBOX", "TAB");
     if (!tabId) {
         tabId = "portlets";
     }



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