dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20170
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9095: Put back method in lists.js, broke a lot of stuff
------------------------------------------------------------
revno: 9095
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-11-21 12:43:46 +0100
message:
Put back method in lists.js, broke a lot of stuff
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/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/javascripts/lists.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/lists.js 2012-11-09 21:25:34 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/lists.js 2012-11-21 11:43:46 +0000
@@ -74,12 +74,19 @@
* @param listId the id of the list.
*/
function clearListById( listId ) {
- // var list = document.getElementById( listId );
- // clearList( list );
$('#' + listId).children().remove();
}
/**
+ * Clears the list.
+ *
+ * @param list the list.
+ */
+function clearList( list ) {
+ list.options.length = 0;
+}
+
+/**
* Tests whether the list contains the value.
*
* @param listId the id of the list.