diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-12-05 17:01:52 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-12-05 17:02:30 +0100 |
commit | 8bcb717cb947410b24de20900f61b16a3c49de4f (patch) | |
tree | 4878324938d5d992bc207805ffa85b4772c77d27 /plugins | |
parent | 03bf70f633496f916f211fbf7f3cb17bc691c63d (diff) | |
download | sonarqube-8bcb717cb947410b24de20900f61b16a3c49de4f.tar.gz sonarqube-8bcb717cb947410b24de20900f61b16a3c49de4f.zip |
SONAR-4910 Fix most violated rules widget
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb index 40a6a5f3b75..45e48cbd8b1 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb @@ -28,11 +28,20 @@ } $j('#most-violated-rules-<%= widget.id -%>-' + severity).show(); } + + function severityForLink() { + var severity = $F('select-severity_<%= widget.id -%>'); + if (severity == 'all') { + return ''; + } else { + return severity; + } + } </script> <div class="line-block"> <div style="float:right"> - <a href="#" onclick="window.location.href='<%= url_for(:controller => 'drilldown', :action => 'issues') -%>/<%= @resource.id -%>?period=<%= dashboard_configuration.period_index -%>&severity=' + $F('select-severity_<%= widget.id -%>') "> + <a href="#" onclick="window.location.href='<%= url_for(:controller => 'drilldown', :action => 'issues') -%>/<%= @resource.id -%>?period=<%= dashboard_configuration.period_index -%>&severity=' + severityForLink() "> <%= message('widget.hotspot_metric.more') -%> </a> </div> |