dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #04935
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1644: zeroValueStorageManagement list to initialize correctly for IE
------------------------------------------------------------
revno: 1644
fixes bug(s): https://launchpad.net/bugs/418065
committer: Saptarshi <sunbiz@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2010-03-12 15:45:29 +0100
message:
zeroValueStorageManagement list to initialize correctly for IE
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/zeroValueStorageManagement.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-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/zeroValueStorageManagement.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/zeroValueStorageManagement.js 2010-01-25 07:24:27 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/zeroValueStorageManagement.js 2010-03-12 14:45:29 +0000
@@ -1,19 +1,15 @@
function init()
{
- var list = byId('ignoreZeroValueDataElements');
- var id;
- for ( id in ignoreZeroValueDataElements )
- {
- list.add( new Option( ignoreZeroValueDataElements[id], id ), null );
- }
-
- list = byId('zeroDataValueElements');
-
- for ( id in zeroDataValueElements )
- {
- list.add( new Option( zeroDataValueElements[id], id ), null );
- }
-
+ var id;
+ for ( id in ignoreZeroValueDataElements )
+ {
+ $("#ignoreZeroValueDataElements").append( $( "<option></option>" ).attr( "value",id ).text( ignoreZeroValueDataElements[id] )) ;
+ }
+
+ for ( id in zeroDataValueElements )
+ {
+ $("#zeroDataValueElements").append( $( "<option></option>" ).attr( "value",id ).text( zeroDataValueElements[id] )) ;
+ }
}
function getDataElementsByGroupIgnoreZeroValue ( dataElementGroupId )