← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 885: Fixed bug in method removeSelectedOption

 

------------------------------------------------------------
revno: 885
committer: Lars Helge Oeverland larshelge@xxxxxxxxx
branch nick: trunk
timestamp: Mon 2009-10-19 15:19:26 +0200
message:
  Fixed bug in method removeSelectedOption
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/lists.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js	2009-09-28 22:49:28 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/commons.js	2009-10-19 13:19:26 +0000
@@ -462,7 +462,7 @@
 }
 
 /**
- * Returns a query string with all selected element values in the select with
+ * Returns a query string with all element values in the select list with
  * the specified identifier.
  */
 function getParamString( elementId )

=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/lists.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/lists.js	2009-05-28 11:18:43 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/lists.js	2009-10-19 13:19:26 +0000
@@ -170,7 +170,7 @@
  * @param listId the id of the list.
  */
 function removeSelectedOption( listId ) {
-    var list = document.getElementById( "levelNames" );
+    var list = document.getElementById( listId );
     for ( var i = list.length - 1; i >= 0; i-- ) {
         if ( list.options[ i ].selected ) {
             list.remove( i );