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
edc3eee5
Commit
edc3eee5
authored
12 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
fix carousel event
parent
8e6697f2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docs/assets/js/bootstrap-carousel.js
+6
-4
docs/assets/js/bootstrap-carousel.js
docs/assets/js/bootstrap-tooltip.js
+3
-2
docs/assets/js/bootstrap-tooltip.js
docs/assets/js/bootstrap.js
+9
-6
docs/assets/js/bootstrap.js
docs/assets/js/bootstrap.min.js
+6
-2
docs/assets/js/bootstrap.min.js
js/bootstrap-carousel.js
+5
-3
js/bootstrap-carousel.js
with
29 additions
and
17 deletions
+29
-17
docs/assets/js/bootstrap-carousel.js
+
6
-
4
View file @
edc3eee5
...
@@ -94,9 +94,7 @@
...
@@ -94,9 +94,7 @@
,
direction
=
type
==
'
next
'
?
'
left
'
:
'
right
'
,
direction
=
type
==
'
next
'
?
'
left
'
:
'
right
'
,
fallback
=
type
==
'
next
'
?
'
first
'
:
'
last
'
,
fallback
=
type
==
'
next
'
?
'
first
'
:
'
last
'
,
that
=
this
,
that
=
this
,
e
=
$
.
Event
(
'
slide
'
,
{
,
e
relatedTarget
:
$next
[
0
]
})
this
.
sliding
=
true
this
.
sliding
=
true
...
@@ -104,6 +102,10 @@
...
@@ -104,6 +102,10 @@
$next
=
$next
.
length
?
$next
:
this
.
$element
.
find
(
'
.item
'
)[
fallback
]()
$next
=
$next
.
length
?
$next
:
this
.
$element
.
find
(
'
.item
'
)[
fallback
]()
e
=
$
.
Event
(
'
slide
'
,
{
relatedTarget
:
$next
[
0
]
})
if
(
$next
.
hasClass
(
'
active
'
))
return
if
(
$next
.
hasClass
(
'
active
'
))
return
if
(
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
if
(
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
...
@@ -167,7 +169,7 @@
...
@@ -167,7 +169,7 @@
$
(
'
body
'
).
on
(
'
click.carousel.data-api
'
,
'
[data-slide]
'
,
function
(
e
)
{
$
(
'
body
'
).
on
(
'
click.carousel.data-api
'
,
'
[data-slide]
'
,
function
(
e
)
{
var
$this
=
$
(
this
),
href
var
$this
=
$
(
this
),
href
,
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
,
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
,
options
=
!
$target
.
data
(
'
moda
l
'
)
&&
$
.
extend
({},
$target
.
data
(),
$this
.
data
())
,
options
=
!
$target
.
data
(
'
carouse
l
'
)
&&
$
.
extend
({},
$target
.
data
(),
$this
.
data
())
$target
.
carousel
(
options
)
$target
.
carousel
(
options
)
e
.
preventDefault
()
e
.
preventDefault
()
})
})
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap-tooltip.js
+
3
-
2
View file @
edc3eee5
...
@@ -235,8 +235,9 @@
...
@@ -235,8 +235,9 @@
this
.
enabled
=
!
this
.
enabled
this
.
enabled
=
!
this
.
enabled
}
}
,
toggle
:
function
()
{
,
toggle
:
function
(
e
)
{
this
[
this
.
tip
().
hasClass
(
'
in
'
)
?
'
hide
'
:
'
show
'
]()
var
self
=
$
(
e
.
currentTarget
)[
this
.
type
](
this
.
_options
).
data
(
this
.
type
)
self
[
self
.
tip
().
hasClass
(
'
in
'
)
?
'
hide
'
:
'
show
'
]()
}
}
,
destroy
:
function
()
{
,
destroy
:
function
()
{
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap.js
+
9
-
6
View file @
edc3eee5
...
@@ -337,9 +337,7 @@
...
@@ -337,9 +337,7 @@
,
direction
=
type
==
'
next
'
?
'
left
'
:
'
right
'
,
direction
=
type
==
'
next
'
?
'
left
'
:
'
right
'
,
fallback
=
type
==
'
next
'
?
'
first
'
:
'
last
'
,
fallback
=
type
==
'
next
'
?
'
first
'
:
'
last
'
,
that
=
this
,
that
=
this
,
e
=
$
.
Event
(
'
slide
'
,
{
,
e
relatedTarget
:
$next
[
0
]
})
this
.
sliding
=
true
this
.
sliding
=
true
...
@@ -347,6 +345,10 @@
...
@@ -347,6 +345,10 @@
$next
=
$next
.
length
?
$next
:
this
.
$element
.
find
(
'
.item
'
)[
fallback
]()
$next
=
$next
.
length
?
$next
:
this
.
$element
.
find
(
'
.item
'
)[
fallback
]()
e
=
$
.
Event
(
'
slide
'
,
{
relatedTarget
:
$next
[
0
]
})
if
(
$next
.
hasClass
(
'
active
'
))
return
if
(
$next
.
hasClass
(
'
active
'
))
return
if
(
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
if
(
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
...
@@ -410,7 +412,7 @@
...
@@ -410,7 +412,7 @@
$
(
'
body
'
).
on
(
'
click.carousel.data-api
'
,
'
[data-slide]
'
,
function
(
e
)
{
$
(
'
body
'
).
on
(
'
click.carousel.data-api
'
,
'
[data-slide]
'
,
function
(
e
)
{
var
$this
=
$
(
this
),
href
var
$this
=
$
(
this
),
href
,
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
,
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
,
options
=
!
$target
.
data
(
'
moda
l
'
)
&&
$
.
extend
({},
$target
.
data
(),
$this
.
data
())
,
options
=
!
$target
.
data
(
'
carouse
l
'
)
&&
$
.
extend
({},
$target
.
data
(),
$this
.
data
())
$target
.
carousel
(
options
)
$target
.
carousel
(
options
)
e
.
preventDefault
()
e
.
preventDefault
()
})
})
...
@@ -1193,8 +1195,9 @@
...
@@ -1193,8 +1195,9 @@
this
.
enabled
=
!
this
.
enabled
this
.
enabled
=
!
this
.
enabled
}
}
,
toggle
:
function
()
{
,
toggle
:
function
(
e
)
{
this
[
this
.
tip
().
hasClass
(
'
in
'
)
?
'
hide
'
:
'
show
'
]()
var
self
=
$
(
e
.
currentTarget
)[
this
.
type
](
this
.
_options
).
data
(
this
.
type
)
self
[
self
.
tip
().
hasClass
(
'
in
'
)
?
'
hide
'
:
'
show
'
]()
}
}
,
destroy
:
function
()
{
,
destroy
:
function
()
{
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap.min.js
+
6
-
2
View file @
edc3eee5
This diff is collapsed.
Click to expand it.
js/bootstrap-carousel.js
+
5
-
3
View file @
edc3eee5
...
@@ -94,9 +94,7 @@
...
@@ -94,9 +94,7 @@
,
direction
=
type
==
'
next
'
?
'
left
'
:
'
right
'
,
direction
=
type
==
'
next
'
?
'
left
'
:
'
right
'
,
fallback
=
type
==
'
next
'
?
'
first
'
:
'
last
'
,
fallback
=
type
==
'
next
'
?
'
first
'
:
'
last
'
,
that
=
this
,
that
=
this
,
e
=
$
.
Event
(
'
slide
'
,
{
,
e
relatedTarget
:
$next
[
0
]
})
this
.
sliding
=
true
this
.
sliding
=
true
...
@@ -104,6 +102,10 @@
...
@@ -104,6 +102,10 @@
$next
=
$next
.
length
?
$next
:
this
.
$element
.
find
(
'
.item
'
)[
fallback
]()
$next
=
$next
.
length
?
$next
:
this
.
$element
.
find
(
'
.item
'
)[
fallback
]()
e
=
$
.
Event
(
'
slide
'
,
{
relatedTarget
:
$next
[
0
]
})
if
(
$next
.
hasClass
(
'
active
'
))
return
if
(
$next
.
hasClass
(
'
active
'
))
return
if
(
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
if
(
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
slide
'
))
{
...
...
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