← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17038: OUWT, triggering org unit selected on document

 

------------------------------------------------------------
revno: 17038
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-10-10 16:03:12 +0200
message:
  OUWT, triggering org unit selected on document
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-10-10 07:41:20 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ouwt/ouwt.js	2014-10-10 14:03:12 +0000
@@ -564,7 +564,7 @@
                 names.push( name );
             } );
 
-            $( "#orgUnitTree" ).trigger( dhis2.ou.event.orgUnitSelected, [ids, names, children] );
+            $( document ).trigger( dhis2.ou.event.orgUnitSelected, [ids, names, children] );
             
             if( typeof listenerFunction === 'function') {
             	listenerFunction( ids, names, children );
@@ -582,7 +582,7 @@
                 ids.push( selected );
                 names.push( name );
 
-                $( "#orgUnitTree" ).trigger( dhis2.ou.event.orgUnitSelected, [ids, names, children] );
+                $( document ).trigger( dhis2.ou.event.orgUnitSelected, [ids, names, children] );
                 
                 if( typeof listenerFunction === 'function') {
                 	listenerFunction( ids, names, children );