portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r601190 - /portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm
Date Wed, 05 Dec 2007 02:24:59 GMT
Author: taylor
Date: Tue Dec  4 18:24:58 2007
New Revision: 601190

URL: http://svn.apache.org/viewvc?rev=601190&view=rev
Log:
https://issues.apache.org/jira/browse/JS2-819
patch to Edit Mode Category Portlet Selector
contribution from Jeseung Choi

Modified:
    portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm

Modified: portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm?rev=601190&r1=601189&r2=601190&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm
(original)
+++ portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/WEB-INF/view/selectors/category-edit-selector.vm
Tue Dec  4 18:24:58 2007
@@ -156,7 +156,8 @@
         jsCategories[newIndex].state = "new";
         var catList = document.getElementById('jsSelectCat');
         var opt = new Option(catName, catName);
-        catList.add(opt, null); 
+        catList.options[newIndex] = opt;
+        //catList.add(opt, null); 
     }
     dojo.widget.byId("AddCategoryDialog").hide();   
 }
@@ -180,7 +181,7 @@
                 j = j + 1;
             }
         }
-        delete jsCategories;
+        //delete jsCategories;
         jsCategories = temp;
         catList.remove(catList.selectedIndex);
     }



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