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
d08f7dd8
Commit
d08f7dd8
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Plain Diff
Merge pull request #13330 from Kronuz/patch-1
Wait for the expected target during a collapse
parents
1254c322
82b066f0
4 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/collapse.js
+10
-2
js/collapse.js
with
10 additions
and
2 deletions
+10
-2
js/collapse.js
+
10
-
2
View file @
d08f7dd8
...
...
@@ -56,7 +56,11 @@
this
.
transitioning
=
1
var
complete
=
function
(
e
)
{
if
(
e
&&
e
.
target
!=
this
.
$element
[
0
])
return
if
(
e
&&
e
.
target
!=
this
.
$element
[
0
])
{
this
.
$element
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
complete
,
this
))
return
}
this
.
$element
.
removeClass
(
'
collapsing
'
)
.
addClass
(
'
collapse in
'
)[
dimension
](
'
auto
'
)
...
...
@@ -92,7 +96,11 @@
this
.
transitioning
=
1
var
complete
=
function
(
e
)
{
if
(
e
&&
e
.
target
!=
this
.
$element
[
0
])
return
if
(
e
&&
e
.
target
!=
this
.
$element
[
0
])
{
this
.
$element
.
one
(
$
.
support
.
transition
.
end
,
$
.
proxy
(
complete
,
this
))
return
}
this
.
transitioning
=
0
this
.
$element
.
trigger
(
'
hidden.bs.collapse
'
)
...
...
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