diff options
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/application.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/application.js b/sonar-server/src/main/webapp/javascripts/application.js index aa0d8c0a94b..da287a6ef9b 100644 --- a/sonar-server/src/main/webapp/javascripts/application.js +++ b/sonar-server/src/main/webapp/javascripts/application.js @@ -209,12 +209,12 @@ Treemap.prototype.rootNode = function () { Treemap.prototype.initNodes = function () { var self = this; $j('#tm-' + this.id).find('a').each(function (index) { - this.on("mouseup", function (event) { - event.stopPropagation() + $j(this).on("click", function (event) { + event.stopPropagation(); }); }); $j('#tm-' + this.id).find('[rid]').each(function (index) { - this.on("contextmenu", function (event) { + $j(this).on("contextmenu", function (event) { event.stopPropagation(); event.preventDefault(); // right click @@ -227,8 +227,7 @@ Treemap.prototype.initNodes = function () { } return false; }); - - this.on("click", function (event) { + $j(this).on("click", function (event) { var source = $j(this); var rid = source.attr('rid'); var has_leaves = !!(source.attr('l')); |