------------------------------------------------------------
revno: 13499
committer: Morten Olav Hansen <[email protected]>
branch nick: dhis2
timestamp: Mon 2013-12-30 19:38:00 +0100
message:
minor fix for context-menu, in a few cases the e.target is <i/> (used for
icons in menu) and not <a/>. Use jQuery.closest to make sure that we are on a
anchor.
modified:
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.contextmenu.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.contextmenu.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.contextmenu.js 2013-12-11 14:39:02 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.contextmenu.js 2013-12-30 18:38:00 +0000
@@ -75,7 +75,7 @@
context[val] = $menu.data(val);
});
- var $target = $(e.target);
+ var $target = $(e.target).closest('a');
var targetFn = $target.data('target-fn');
var fn = config.functionResolver(targetFn);
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp