diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-06-01 21:13:29 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-06-01 21:13:29 +0300 |
commit | 5b43eeee97f8e06a4ada4b173cb972c20d58d8ed (patch) | |
tree | 7d52eb9d7d24ac15820a2a00a057188edc14ebc3 /app | |
parent | 2d084dd8481417ba8031a378d68009738d076229 (diff) | |
download | gitlab-ce-5b43eeee97f8e06a4ada4b173cb972c20d58d8ed.tar.gz |
Blur button tags when clicked. Fixes #17748.
http://stackoverflow.com/questions/23443579/how-to-stop-buttons-from-staying-depressed-with-bootstrap-3
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/application.js.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/application.js.coffee b/app/assets/javascripts/application.js.coffee index 7c547ac843b..8f275510bad 100644 --- a/app/assets/javascripts/application.js.coffee +++ b/app/assets/javascripts/application.js.coffee @@ -219,6 +219,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() |