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
67f19967
Commit
67f19967
authored
13 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
if interval is false, do not autocycle the carousel
parent
83a7a698
2 merge requests
!2929
Responsive video - from zurp's foundation
,
!2875
2.0.3 wip
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
docs/assets/js/bootstrap-carousel.js
+5
-4
docs/assets/js/bootstrap-carousel.js
docs/assets/js/bootstrap-typeahead.js
+2
-1
docs/assets/js/bootstrap-typeahead.js
docs/javascript.html
+1
-1
docs/javascript.html
docs/templates/pages/javascript.mustache
+1
-1
docs/templates/pages/javascript.mustache
js/bootstrap-carousel.js
+5
-4
js/bootstrap-carousel.js
with
14 additions
and
11 deletions
+14
-11
docs/assets/bootstrap.zip
+
0
-
0
View file @
67f19967
No preview for this file type
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap-carousel.js
+
5
-
4
View file @
67f19967
...
...
@@ -27,7 +27,7 @@
var
Carousel
=
function
(
element
,
options
)
{
this
.
$element
=
$
(
element
)
this
.
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
options
)
this
.
options
=
options
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
pause
==
'
hover
'
&&
this
.
$element
.
on
(
'
mouseenter
'
,
$
.
proxy
(
this
.
pause
,
this
))
...
...
@@ -37,7 +37,8 @@
Carousel
.
prototype
=
{
cycle
:
function
()
{
this
.
interval
=
setInterval
(
$
.
proxy
(
this
.
next
,
this
),
this
.
options
.
interval
)
this
.
options
.
interval
&&
(
this
.
interval
=
setInterval
(
$
.
proxy
(
this
.
next
,
this
),
this
.
options
.
interval
))
return
this
}
...
...
@@ -129,11 +130,11 @@
return
this
.
each
(
function
()
{
var
$this
=
$
(
this
)
,
data
=
$this
.
data
(
'
carousel
'
)
,
options
=
typeof
option
==
'
object
'
&&
option
,
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
typeof
option
==
'
object
'
&&
option
)
if
(
!
data
)
$this
.
data
(
'
carousel
'
,
(
data
=
new
Carousel
(
this
,
options
)))
if
(
typeof
option
==
'
number
'
)
data
.
to
(
option
)
else
if
(
typeof
option
==
'
string
'
||
(
option
=
options
.
slide
))
data
[
option
]()
else
data
.
cycle
()
else
if
(
options
.
interval
)
data
.
cycle
()
})
}
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/bootstrap-typeahead.js
+
2
-
1
View file @
67f19967
...
...
@@ -109,7 +109,8 @@
}
,
highlighter
:
function
(
item
)
{
return
item
.
replace
(
new
RegExp
(
'
(
'
+
this
.
query
+
'
)
'
,
'
ig
'
),
function
(
$1
,
match
)
{
var
query
=
this
.
query
.
replace
(
/
[
-[
\]
{}()*+?.,
\\
^$|#
\s]
/g
,
'
\\
$&
'
)
return
item
.
replace
(
new
RegExp
(
'
(
'
+
query
+
'
)
'
,
'
ig
'
),
function
(
$1
,
match
)
{
return
'
<strong>
'
+
match
+
'
</strong>
'
})
}
...
...
This diff is collapsed.
Click to expand it.
docs/javascript.html
+
1
-
1
View file @
67f19967
...
...
@@ -1308,7 +1308,7 @@ $('#myCollapsible').on('hidden', function () {
<td>
interval
</td>
<td>
number
</td>
<td>
5000
</td>
<td>
The amount of time to delay between automatically cycling an item.
</td>
<td>
The amount of time to delay between automatically cycling an item.
If false, carousel will not automatically cycle.
</td>
</tr>
<tr>
<td>
pause
</td>
...
...
This diff is collapsed.
Click to expand it.
docs/templates/pages/javascript.mustache
+
1
-
1
View file @
67f19967
...
...
@@ -1232,7 +1232,7 @@ $('#myCollapsible').on('hidden', function () {
<td>
{{
_i
}}
interval
{{/
i
}}
</td>
<td>
{{
_i
}}
number
{{/
i
}}
</td>
<td>
5000
</td>
<td>
{{
_i
}}
The amount of time to delay between automatically cycling an item.
{{/
i
}}
</td>
<td>
{{
_i
}}
The amount of time to delay between automatically cycling an item.
If false, carousel will not automatically cycle.
{{/
i
}}
</td>
</tr>
<tr>
<td>
{{
_i
}}
pause
{{/
i
}}
</td>
...
...
This diff is collapsed.
Click to expand it.
js/bootstrap-carousel.js
+
5
-
4
View file @
67f19967
...
...
@@ -27,7 +27,7 @@
var
Carousel
=
function
(
element
,
options
)
{
this
.
$element
=
$
(
element
)
this
.
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
options
)
this
.
options
=
options
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
pause
==
'
hover
'
&&
this
.
$element
.
on
(
'
mouseenter
'
,
$
.
proxy
(
this
.
pause
,
this
))
...
...
@@ -37,7 +37,8 @@
Carousel
.
prototype
=
{
cycle
:
function
()
{
this
.
interval
=
setInterval
(
$
.
proxy
(
this
.
next
,
this
),
this
.
options
.
interval
)
this
.
options
.
interval
&&
(
this
.
interval
=
setInterval
(
$
.
proxy
(
this
.
next
,
this
),
this
.
options
.
interval
))
return
this
}
...
...
@@ -129,11 +130,11 @@
return
this
.
each
(
function
()
{
var
$this
=
$
(
this
)
,
data
=
$this
.
data
(
'
carousel
'
)
,
options
=
typeof
option
==
'
object
'
&&
option
,
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
typeof
option
==
'
object
'
&&
option
)
if
(
!
data
)
$this
.
data
(
'
carousel
'
,
(
data
=
new
Carousel
(
this
,
options
)))
if
(
typeof
option
==
'
number
'
)
data
.
to
(
option
)
else
if
(
typeof
option
==
'
string
'
||
(
option
=
options
.
slide
))
data
[
option
]()
else
data
.
cycle
()
else
if
(
options
.
interval
)
data
.
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
Menu
Explore
Projects
Groups
Snippets