diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-07 15:26:32 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-07 15:26:32 +0100 |
commit | 52d932db8a1a5c2c1c4164478dd14e2b4749611c (patch) | |
tree | 2c8dcbf3b64eabcacfe4a25bb928176eded4663a /sonar-server | |
parent | 3f1a93b472a4ed1503714403146ef22b69b1efa6 (diff) | |
download | sonarqube-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.erb | 3 |
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; } |