← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13089: use .parents() to search for dropdown container in ip-feed

 

------------------------------------------------------------
revno: 13089
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2013-12-01 17:55:37 +0100
message:
  use .parents() to search for dropdown container in ip-feed
modified:
  dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/interpretationFeed.vm


--
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-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/interpretationFeed.vm'
--- dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/interpretationFeed.vm	2013-12-01 16:49:30 +0000
+++ dhis-2/dhis-web/dhis-web-dashboard-integration/src/main/webapp/dhis-web-dashboard-integration/interpretationFeed.vm	2013-12-01 16:55:37 +0000
@@ -24,11 +24,7 @@
   });
 
   jQuery('.interpretationContainer').on('click', '.gearDropDown', function( e ) {
-    var jqTarget = jQuery(e.target);
-
-    while( !jqTarget.hasClass('gearDropDown') ) {
-      jqTarget = jqTarget.parent();
-    }
+    var jqTarget = jQuery(e.target).parents('.gearDropDown');
 
     jQuery('.gearDropDown').removeClass('active');
     jqTarget.addClass('active');