dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41548
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21168: Ädded comments
------------------------------------------------------------
revno: 21168
committer: Jiju K Jose <jijukjose@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-11-23 13:37:27 +0100
message:
Ädded comments
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-11-23 09:07:59 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js 2015-11-23 12:37:27 +0000
@@ -92,7 +92,7 @@
html: true,
title: scope.title
};
- element.popover(options);
+ element[0].popover(options);
}
};
})
@@ -173,6 +173,7 @@
};
})
+/* TODO: this directive access an element #contextMenu somewhere in the document. Looks like it has to be rewritten */
.directive('d2ContextMenu', function () {
return {
@@ -180,7 +181,7 @@
link: function (scope, element, attrs) {
var contextMenu = $("#contextMenu");
- element.click(function (e) {
+ element.click(function (e) {
var menuHeight = contextMenu.height();
var menuWidth = contextMenu.width();
var winHeight = $(window).height();