Author: woonsan
Date: Mon Nov 30 16:32:07 2009
New Revision: 885484

URL: http://svn.apache.org/viewvc?rev=885484&view=rev
Log:
JS2-1057: Not to refresh when the selected category is the same one as before.
Also, set the default category to "News".

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=885484&r1=885483&r2=885484&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
 Mon Nov 30 16:32:07 2009
@@ -187,7 +187,7 @@
                }
             var categories = 
Y.Node.getDOMNode(Y.Node.one("#<portlet:namespace/>categories"));
             for (var i = 0; i < categories.options.length; i++) {
-                if (category == categories.options[i].value) {
+                if (category == categories.options[i].value && i != 
categories.selectedIndex) {
                     categories.options[i].selected = true;
                     loadPortletsInCategory(category);
                     break;



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to