------------------------------------------------------------
revno: 20656
committer: Markus Bekken <[email protected]>
branch nick: dhis2
timestamp: Mon 2015-10-12 21:06:16 +0200
message:
  Fix of timing issue when attaching event handler
modified:
  
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.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/dhis2/dhis2.angular.directives.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js	2015-10-12 14:21:42 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js	2015-10-12 19:06:16 +0000
@@ -67,7 +67,7 @@
                         });
                     }
                     else{
-                        $("#orgUnitTree").one("ouwtLoaded", function (event, ids, names) {
+                        $(document).on("ouwtLoaded", function () {
                             console.log('Finished loading orgunit tree');
                             //Disable ou selection until meta-data has downloaded
                             $("#orgUnitTree").addClass("disable-clicks");

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to