← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14695: small ouwt bugfix, .complete call-chain was on $.each instead of $.post

 

------------------------------------------------------------
revno: 14695
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-04-06 17:52:21 +0700
message:
  small ouwt bugfix, .complete call-chain was on $.each instead of $.post
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.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/ouwt/ouwt.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2014-01-22 13:53:27 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2014-04-06 10:52:21 +0000
@@ -387,8 +387,8 @@
                     $.each( selected, function( i, item ) {
                         $.post( organisationUnitTreePath + "addorgunit.action", {
                             id: item
-                        } );
-                    } ).complete( fn );
+                        } ).complete( fn );
+                    } );
                 } else {
                     selected = $.isArray( selected ) ? selected[0] : selected;