aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/common
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-02-18 16:48:17 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-02-18 16:48:17 +0100
commit2e7d42119d24b3b9ce9d273e80cfb2468df43c15 (patch)
tree396697a0b37adc1492266ff2d392b8dc5fa2b6fd /server/sonar-web/src/main/js/common
parentc13a38b5ceae4d609d3b6dd290c56d0b87dc6fc3 (diff)
downloadsonarqube-2e7d42119d24b3b9ce9d273e80cfb2468df43c15.tar.gz
sonarqube-2e7d42119d24b3b9ce9d273e80cfb2468df43c15.zip
hide error messages after a while
Diffstat (limited to 'server/sonar-web/src/main/js/common')
-rw-r--r--server/sonar-web/src/main/js/common/processes.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/common/processes.js b/server/sonar-web/src/main/js/common/processes.js
index d7188df15ce..19bc593c39a 100644
--- a/server/sonar-web/src/main/js/common/processes.js
+++ b/server/sonar-web/src/main/js/common/processes.js
@@ -26,12 +26,16 @@
},
fail: function (message) {
+ var that = this;
clearInterval(this.get('timer'));
this.set({
state: 'failed',
message: message || t('process.fail')
});
this.set('state', 'failed');
+ setTimeout(function () {
+ that.finish({ force: true });
+ }, 5000);
}
}),