aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-12-17 17:05:16 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-12-17 18:15:56 +0100
commit6dc46e963eade7e92f8c692fa8bb65f700269b70 (patch)
tree5aeec3c1623d71b13adca73564cb6f4666671485
parentc7312cf4f14b228fb38baf0a0905dcc471817259 (diff)
downloadsonarqube-6dc46e963eade7e92f8c692fa8bb65f700269b70.tar.gz
sonarqube-6dc46e963eade7e92f8c692fa8bb65f700269b70.zip
Fix treemap on IE7
-rw-r--r--sonar-server/src/main/webapp/javascripts/application.js9
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'));