aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-08-27 11:08:37 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-08-27 11:08:48 +0200
commit5b3813ad31de4d301f3fdb53ed8173b775b59c82 (patch)
tree4d6c36ab1a0703287ab7126875ff0aa8b3f63c9b /sonar-server/src/main/webapp
parent08a18e07cc842e111f834a395da414fd516606ee (diff)
downloadsonarqube-5b3813ad31de4d301f3fdb53ed8173b775b59c82.tar.gz
sonarqube-5b3813ad31de4d301f3fdb53ed8173b775b59c82.zip
SONAR-4593 The default focus is set on the first link contained within the rule modal window, rather than on the "Close" button
Diffstat (limited to 'sonar-server/src/main/webapp')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show_modal.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show_modal.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show_modal.html.erb
index 43cd943c19b..f86cba607ad 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show_modal.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show_modal.html.erb
@@ -36,12 +36,12 @@
<% end %>
<div class="modal-foot">
- <input type="button" value="<%= h message('close') -%>" onclick="return closeModalWindow()">
+ <input type="button" value="<%= h message('close') -%>" onclick="return closeModalWindow()" autofocus="autofocus">
</div>
<script type="text/javascript">
$j(document).ready(function () {
// As links in rule description will be loaded after open-modal has been processed by jquery, we have to process manually rule-modal classes
- $j('.rule_detail .rule-modal').modal()
+ $j('.rule_detail .rule-modal').modal();
});
</script>