Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
f6cec812
Commit
f6cec812
authored
11 years ago
by
fat
Browse files
Options
Download
Email Patches
Plain Diff
fixes
#8957
parent
e969d2ff
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dist/js/bootstrap.js
+3
-1
dist/js/bootstrap.js
dist/js/bootstrap.min.js
+1
-1
dist/js/bootstrap.min.js
js/button.js
+3
-1
js/button.js
with
7 additions
and
3 deletions
+7
-3
dist/js/bootstrap.js
+
3
-
1
View file @
f6cec812
...
@@ -219,7 +219,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
...
@@ -219,7 +219,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
var
$parent
=
this
.
$element
.
closest
(
'
[data-toggle="buttons"]
'
)
var
$parent
=
this
.
$element
.
closest
(
'
[data-toggle="buttons"]
'
)
if
(
$parent
.
length
)
{
if
(
$parent
.
length
)
{
var
$input
=
this
.
$element
.
find
(
'
input
'
).
prop
(
'
checked
'
,
!
this
.
$element
.
hasClass
(
'
active
'
))
var
$input
=
this
.
$element
.
find
(
'
input
'
)
.
prop
(
'
checked
'
,
!
this
.
$element
.
hasClass
(
'
active
'
))
.
trigger
(
'
change
'
)
if
(
$input
.
prop
(
'
type
'
)
===
'
radio
'
)
$parent
.
find
(
'
.active
'
).
removeClass
(
'
active
'
)
if
(
$input
.
prop
(
'
type
'
)
===
'
radio
'
)
$parent
.
find
(
'
.active
'
).
removeClass
(
'
active
'
)
}
}
...
...
This diff is collapsed.
Click to expand it.
dist/js/bootstrap.min.js
+
1
-
1
View file @
f6cec812
This diff is collapsed.
Click to expand it.
js/button.js
+
3
-
1
View file @
f6cec812
...
@@ -56,7 +56,9 @@
...
@@ -56,7 +56,9 @@
var
$parent
=
this
.
$element
.
closest
(
'
[data-toggle="buttons"]
'
)
var
$parent
=
this
.
$element
.
closest
(
'
[data-toggle="buttons"]
'
)
if
(
$parent
.
length
)
{
if
(
$parent
.
length
)
{
var
$input
=
this
.
$element
.
find
(
'
input
'
).
prop
(
'
checked
'
,
!
this
.
$element
.
hasClass
(
'
active
'
))
var
$input
=
this
.
$element
.
find
(
'
input
'
)
.
prop
(
'
checked
'
,
!
this
.
$element
.
hasClass
(
'
active
'
))
.
trigger
(
'
change
'
)
if
(
$input
.
prop
(
'
type
'
)
===
'
radio
'
)
$parent
.
find
(
'
.active
'
).
removeClass
(
'
active
'
)
if
(
$input
.
prop
(
'
type
'
)
===
'
radio
'
)
$parent
.
find
(
'
.active
'
).
removeClass
(
'
active
'
)
}
}
...
...
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
Menu
Explore
Projects
Groups
Snippets