diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-08-08 16:28:43 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-08-08 16:41:28 +0200 |
commit | 45896a6f2238cd24d05881736e9b4674cb239ce9 (patch) | |
tree | e2f5ab787e1109151101c6af833bb7e612209a1b /server | |
parent | 1660dafc9ec22379c2d596af1a5f7548645308b4 (diff) | |
download | sonarqube-45896a6f2238cd24d05881736e9b4674cb239ce9.tar.gz sonarqube-45896a6f2238cd24d05881736e9b4674cb239ce9.zip |
SONAR-5504 Make "Close" link focusable and focus on it on bulk success
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-bulk-change-view.coffee | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change.hbs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-bulk-change-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-bulk-change-view.coffee index 7a7b697c758..3a0686314b2 100644 --- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-bulk-change-view.coffee +++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-bulk-change-view.coffee @@ -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 diff --git a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change.hbs b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change.hbs index ccbb18a32a9..441222f7557 100644 --- a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change.hbs +++ b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-bulk-change.hbs @@ -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> |