=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.js 2010-07-23 07:04:03 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.js 2010-08-26 15:29:08 +0000 @@ -115,11 +115,15 @@ { this.clearSelectedOrganisationUnits = function() { - var request = new Request(); - request.setResponseTypeXML( 'xmlObject' ); - request.setCallbackSuccess( clearSelectedOrgUnitsCompleted ); - request.send( selectionTreePath + 'clearSelectedOrganisationUnits.action' ); - + $.ajax({ + "url" : selectionTreePath + "clearSelectedOrganisationUnits.action", + async : false, + dataType :"xml", + "success" : function( data ) + { + clearSelectedOrgUnitsCompleted( data ); + } + }); }; this.toggle = function( unitId ) @@ -348,11 +352,11 @@ { if ( xmlObject != null ) { - var type = xmlObject.getAttribute( 'type' ); + var type = xmlObject.documentElement.attributes.getNamedItem("type").nodeValue; if ( type == 'error' ) { - alert( xmlObject.firstChild.nodeValue ); + alert( xmlObject.documentElement.childNodes[0].nodeValue ); } } }