Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
eb3333a6
Commit
eb3333a6
authored
Jul 17, 2013
by
fat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #7000
parent
0f64c210
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
docs/assets/js/bootstrap.js
docs/assets/js/bootstrap.js
+4
-4
docs/assets/js/bootstrap.min.js
docs/assets/js/bootstrap.min.js
+1
-1
docs/examples/carousel.html
docs/examples/carousel.html
+3
-3
js/carousel.js
js/carousel.js
+3
-2
No files found.
docs/assets/js/bootstrap.js
View file @
eb3333a6
...
...
@@ -437,12 +437,13 @@
var
$this
=
$
(
this
),
href
var
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
var
options
=
$
.
extend
({},
$target
.
data
(),
$this
.
data
())
var
slideIndex
var
slideIndex
=
$this
.
attr
(
'
data-slide-to
'
)
if
(
slideIndex
)
options
.
interval
=
false
$target
.
carousel
(
options
)
if
(
slideIndex
=
$this
.
attr
(
'
data-slide-to
'
))
{
$target
.
data
(
'
bs.carousel
'
).
pause
().
to
(
slideIndex
).
cycle
(
)
$target
.
data
(
'
bs.carousel
'
).
to
(
slideIndex
)
}
e
.
preventDefault
()
...
...
@@ -612,8 +613,7 @@
var
parent
=
$this
.
attr
(
'
data-parent
'
)
var
$parent
=
parent
&&
$
(
parent
)
console
.
log
(
data
,
data
&&
data
.
transitioning
)
if
(
data
&&
!
data
.
transitioning
)
{
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
'
)
}
...
...
docs/assets/js/bootstrap.min.js
View file @
eb3333a6
This diff is collapsed.
Click to expand it.
docs/examples/carousel.html
View file @
eb3333a6
...
...
@@ -279,7 +279,7 @@ body {
</ol>
<div
class=
"carousel-inner"
>
<div
class=
"item active"
>
<img
data-src=
"holder.js/1500x500/auto/#
777
:#7a7a7a/text:First slide"
alt=
""
>
<img
data-src=
"holder.js/1500x500/auto/#
F00
:#7a7a7a/text:First slide"
alt=
""
>
<div
class=
"container"
>
<div
class=
"carousel-caption"
>
<h1>
Example headline.
</h1>
...
...
@@ -289,7 +289,7 @@ body {
</div>
</div>
<div
class=
"item"
>
<img
data-src=
"holder.js/1500x500/auto/#
777
:#7a7a7a/text:Second slide"
alt=
""
>
<img
data-src=
"holder.js/1500x500/auto/#
0F0
:#7a7a7a/text:Second slide"
alt=
""
>
<div
class=
"container"
>
<div
class=
"carousel-caption"
>
<h1>
Another example headline.
</h1>
...
...
@@ -299,7 +299,7 @@ body {
</div>
</div>
<div
class=
"item"
>
<img
data-src=
"holder.js/1500x500/auto/#
777
:#7a7a7a/text:Third slide"
alt=
""
>
<img
data-src=
"holder.js/1500x500/auto/#
00F
:#7a7a7a/text:Third slide"
alt=
""
>
<div
class=
"container"
>
<div
class=
"carousel-caption"
>
<h1>
One more for good measure.
</h1>
...
...
js/carousel.js
View file @
eb3333a6
...
...
@@ -189,12 +189,13 @@
var
$this
=
$
(
this
),
href
var
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
var
options
=
$
.
extend
({},
$target
.
data
(),
$this
.
data
())
var
slideIndex
var
slideIndex
=
$this
.
attr
(
'
data-slide-to
'
)
if
(
slideIndex
)
options
.
interval
=
false
$target
.
carousel
(
options
)
if
(
slideIndex
=
$this
.
attr
(
'
data-slide-to
'
))
{
$target
.
data
(
'
bs.carousel
'
).
pause
().
to
(
slideIndex
).
cycle
(
)
$target
.
data
(
'
bs.carousel
'
).
to
(
slideIndex
)
}
e
.
preventDefault
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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