Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
4b165332
Commit
4b165332
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Plain Diff
Merge pull request #14925 from twbs/button-focus-use-regexp
Use RegExp for button plugin's focus shim
parents
33e78ed9
5178d8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/button.js
+1
-1
js/button.js
with
1 addition
and
1 deletion
+1
-1
js/button.js
+
1
-
1
View file @
4b165332
...
...
@@ -110,7 +110,7 @@
e
.
preventDefault
()
})
.
on
(
'
focus.bs.button.data-api blur.bs.button.data-api
'
,
'
[data-toggle^="button"]
'
,
function
(
e
)
{
$
(
e
.
target
).
closest
(
'
.btn
'
).
toggleClass
(
'
focus
'
,
e
.
type
==
'
focus
'
)
$
(
e
.
target
).
closest
(
'
.btn
'
).
toggleClass
(
'
focus
'
,
/^focus
(
in
)?
$/
.
test
(
e
.
type
)
)
})
}(
jQuery
);
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment