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
b13eecae
Commit
b13eecae
authored
11 years ago
by
fat
Browse files
Options
Download
Email Patches
Plain Diff
fixes #7880
parent
59f847e8
3 merge requests
!8635
ignore Gruntfile.js in jekyll
,
!8656
Added rel="stylesheet" to CDN-Examples
,
!8527
Inner properties move 1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/collapse.js
+8
-7
js/collapse.js
with
8 additions
and
7 deletions
+8
-7
js/collapse.js
+
8
-
7
View file @
b13eecae
...
...
@@ -145,21 +145,22 @@
// =================
$
(
document
).
on
(
'
click.bs.collapse.data-api
'
,
'
[data-toggle=collapse]
'
,
function
(
e
)
{
var
$this
=
$
(
this
),
href
var
target
=
$this
.
attr
(
'
data-target
'
)
var
$this
=
$
(
this
),
href
var
target
=
$this
.
attr
(
'
data-target
'
)
||
e
.
preventDefault
()
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
)
//strip for ie7
var
data
=
$
(
target
).
data
(
'
bs.collapse
'
)
var
option
=
data
?
'
toggle
'
:
$this
.
data
()
var
parent
=
$this
.
attr
(
'
data-parent
'
)
var
$target
=
$
(
target
)
var
data
=
$target
.
data
(
'
bs.collapse
'
)
var
option
=
data
?
'
toggle
'
:
$this
.
data
()
var
parent
=
$this
.
attr
(
'
data-parent
'
)
var
$parent
=
parent
&&
$
(
parent
)
if
(
!
data
||
!
data
.
transitioning
)
{
if
(
$parent
)
$parent
.
find
(
'
[data-toggle=collapse][data-parent=
'
+
parent
+
'
]
'
).
not
(
$this
).
addClass
(
'
collapsed
'
)
$this
[
$
(
target
)
.
hasClass
(
'
in
'
)
?
'
addClass
'
:
'
removeClass
'
](
'
collapsed
'
)
$this
[
$target
.
hasClass
(
'
in
'
)
?
'
addClass
'
:
'
removeClass
'
](
'
collapsed
'
)
}
$
(
target
)
.
collapse
(
option
)
$target
.
collapse
(
option
)
})
}(
window
.
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
Menu
Explore
Projects
Groups
Snippets