dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16214
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6109: Use jQuery methods insteads of Request object in dhis-web-commons-resources (finish).
------------------------------------------------------------
revno: 6109
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2012-02-25 08:53:21 +0700
message:
Use jQuery methods insteads of Request object in dhis-web-commons-resources (finish).
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.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/oust/oust.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.js 2012-02-13 04:51:23 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/oust/oust.js 2012-02-25 01:53:21 +0000
@@ -137,13 +137,9 @@
var parentTag = document.getElementById( getTagId( unitId ));
var children = $(parentTag).find( 'ul' );
- var request = new Request();
- request.setResponseTypeXML( 'units' );
-
if ( children.length < 1 || !isVisible( children[0] ))
- {
- request.setCallbackSuccess( processExpand );
- request.send( selectionTreePath + 'expandSubtree.action?parentId=' + unitId );
+ {
+ $.post( selectionTreePath + 'expandSubtree.action',{parentId:unitId},processExpand );
}
else
{