]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5504 Make "Close" link focusable and focus on it on bulk success
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 8 Aug 2014 14:28:43 +0000 (16:28 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 8 Aug 2014 14:41:28 +0000 (16:41 +0200)
server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-bulk-change-view.coffee
server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change.hbs

index 7a7b697c758f93db1d4f5acffb2badae70817df9..3a0686314b21dd7f94bfb6ef8c07cabe6d5ca217 100644 (file)
@@ -56,6 +56,7 @@ define [
     close: ->
       @options.app.fetchFirstPage()
       @hide()
+      false
 
 
     prepareQuery: ->
@@ -92,6 +93,7 @@ define [
         @$(@ui.codingRulesSubmitBulkChange.selector).hide()
         @$(@ui.codingRulesCancelBulkChange.selector).hide()
         @$(@ui.codingRulesCloseBulkChange.selector).show()
+        @$(@ui.codingRulesCloseBulkChange.selector).focus()
       .fail =>
         @ui.modalFooter.html origFooter
 
index ccbb18a32a98a54453fe2d3a59605d0b7bacd611..441222f7557717eb75410acc4560c14ee5ef2680 100644 (file)
@@ -35,6 +35,6 @@
   <div class="modal-foot">
     <button id="coding-rules-submit-bulk-change">{{t 'apply'}}</button>
     <a id="coding-rules-cancel-bulk-change" class="action">{{t 'cancel'}}</a>
-    <a id="coding-rules-close-bulk-change" class="action" style="display:none">{{t 'close'}}</a>
+    <a id="coding-rules-close-bulk-change" class="action" style="display:none" href="#">{{t 'close'}}</a>
   </div>
 </form>