aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-03-07 15:26:32 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-03-07 15:26:32 +0100
commit52d932db8a1a5c2c1c4164478dd14e2b4749611c (patch)
tree2c8dcbf3b64eabcacfe4a25bb928176eded4663a /sonar-server
parent3f1a93b472a4ed1503714403146ef22b69b1efa6 (diff)
downloadsonarqube-52d932db8a1a5c2c1c4164478dd14e2b4749611c.tar.gz
sonarqube-52d932db8a1a5c2c1c4164478dd14e2b4749611c.zip
SONAR-2218 add a "loading" image when clicking a resource in drilldown pages
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb
index 4a5e5fa59a0..f8556da3636 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/_header.html.erb
@@ -4,6 +4,9 @@
<script>
/* display resource */
function d(resourceId) {
+ var loading = new Image();
+ loading.src = "<%= ApplicationController.root_context-%>/images/loading.gif";
+ $('resource_container').update(loading);
new Ajax.Updater('resource_container', '<%= ApplicationController.root_context-%>/resource/index/' + resourceId + '?metric=<%= @metric.id if @metric -%>&rule=<%= @rule ? @rule.id : params[:priority] -%>&period=<%= @period -%>', {asynchronous:true, evalScripts:true});
return false;
}