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
63bd7cb4
Commit
63bd7cb4
authored
13 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
fix slide logic for ie+ in carousel
parent
bce33bbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
docs/assets/js/bootstrap-carousel.js
+7
-7
docs/assets/js/bootstrap-carousel.js
js/bootstrap-carousel.js
+7
-7
js/bootstrap-carousel.js
with
14 additions
and
14 deletions
+14
-14
docs/assets/bootstrap.zip
+
0
-
0
View file @
63bd7cb4
No preview for this file type
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap-carousel.js
+
7
-
7
View file @
63bd7cb4
...
...
@@ -95,13 +95,7 @@
if
(
$next
.
hasClass
(
'
active
'
))
return
if
(
!
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
this
.
$element
.
trigger
(
'
slide
'
)
$active
.
removeClass
(
'
active
'
)
$next
.
addClass
(
'
active
'
)
this
.
sliding
=
false
this
.
$element
.
trigger
(
'
slid
'
)
}
else
{
if
(
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
$next
.
addClass
(
type
)
$next
[
0
].
offsetWidth
// force reflow
$active
.
addClass
(
direction
)
...
...
@@ -113,6 +107,12 @@
that
.
sliding
=
false
setTimeout
(
function
()
{
that
.
$element
.
trigger
(
'
slid
'
)
},
0
)
})
}
else
{
this
.
$element
.
trigger
(
'
slide
'
)
$active
.
removeClass
(
'
active
'
)
$next
.
addClass
(
'
active
'
)
this
.
sliding
=
false
this
.
$element
.
trigger
(
'
slid
'
)
}
isCycling
&&
this
.
cycle
()
...
...
This diff is collapsed.
Click to expand it.
js/bootstrap-carousel.js
+
7
-
7
View file @
63bd7cb4
...
...
@@ -95,13 +95,7 @@
if
(
$next
.
hasClass
(
'
active
'
))
return
if
(
!
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
this
.
$element
.
trigger
(
'
slide
'
)
$active
.
removeClass
(
'
active
'
)
$next
.
addClass
(
'
active
'
)
this
.
sliding
=
false
this
.
$element
.
trigger
(
'
slid
'
)
}
else
{
if
(
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
$next
.
addClass
(
type
)
$next
[
0
].
offsetWidth
// force reflow
$active
.
addClass
(
direction
)
...
...
@@ -113,6 +107,12 @@
that
.
sliding
=
false
setTimeout
(
function
()
{
that
.
$element
.
trigger
(
'
slid
'
)
},
0
)
})
}
else
{
this
.
$element
.
trigger
(
'
slide
'
)
$active
.
removeClass
(
'
active
'
)
$next
.
addClass
(
'
active
'
)
this
.
sliding
=
false
this
.
$element
.
trigger
(
'
slid
'
)
}
isCycling
&&
this
.
cycle
()
...
...
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