]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4593 The default focus is set on the first link contained within the rule modal...
authorJulien Lancelot <julien.lancelot@gmail.com>
Tue, 27 Aug 2013 09:08:37 +0000 (11:08 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 27 Aug 2013 09:08:48 +0000 (11:08 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show_modal.html.erb

index 43cd943c19b0699e8bc9136a7880c72fe5fc9e77..f86cba607ad8ecc7af916a84a68b4161c8947e65 100644 (file)
 <% 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>