Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2016-06-09 22:45:17 +0300
committerJacob Schatz <jschatz@gitlab.com>2016-06-09 22:45:17 +0300
commitd64517c37d1e14dfe8f27eadfb40dcb034a57092 (patch)
tree516b0297874779dc4a224618848e14be491009a7
parentd7e8adeabfb77d9675234f6ca2f73089915ce0ad (diff)
parent3f2db9d971dd92b446e2a615ed758090079a8c64 (diff)
Merge branch 'button-focus-state' into 'master'
Blur button tags when pressed to remove the focus state. ## Before ![pemnD5exKl](/uploads/333155bf4a6c43715f3fc04d8f5aa35e/pemnD5exKl.gif) ## After ![dCPvSwsuWp](/uploads/9bcfbe59ac8de51e9d2c3edcb3d13ff3/dCPvSwsuWp.gif) See merge request !4418
-rw-r--r--app/assets/javascripts/application.js.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/application.js.coffee b/app/assets/javascripts/application.js.coffee
index ebf425550e9..7526398dadc 100644
--- a/app/assets/javascripts/application.js.coffee
+++ b/app/assets/javascripts/application.js.coffee
@@ -226,6 +226,10 @@ $ ->
form = btn.closest("form")
new ConfirmDangerModal(form, text)
+
+ $(document).on 'click', 'button', ->
+ $(this).blur()
+
$('input[type="search"]').each ->
$this = $(this)
$this.attr 'value', $this.val()