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
67f19967
Commit
67f19967
authored
Mar 19, 2012
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if interval is false, do not autocycle the carousel
parent
83a7a698
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
11 deletions
+14
-11
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/js/bootstrap-carousel.js
docs/assets/js/bootstrap-carousel.js
+5
-4
docs/assets/js/bootstrap-typeahead.js
docs/assets/js/bootstrap-typeahead.js
+2
-1
docs/javascript.html
docs/javascript.html
+1
-1
docs/templates/pages/javascript.mustache
docs/templates/pages/javascript.mustache
+1
-1
js/bootstrap-carousel.js
js/bootstrap-carousel.js
+5
-4
No files found.
docs/assets/bootstrap.zip
View file @
67f19967
No preview for this file type
docs/assets/js/bootstrap-carousel.js
View file @
67f19967
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
var
Carousel
=
function
(
element
,
options
)
{
var
Carousel
=
function
(
element
,
options
)
{
this
.
$element
=
$
(
element
)
this
.
$element
=
$
(
element
)
this
.
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
options
)
this
.
options
=
options
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
pause
==
'
hover
'
&&
this
.
$element
this
.
options
.
pause
==
'
hover
'
&&
this
.
$element
.
on
(
'
mouseenter
'
,
$
.
proxy
(
this
.
pause
,
this
))
.
on
(
'
mouseenter
'
,
$
.
proxy
(
this
.
pause
,
this
))
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
Carousel
.
prototype
=
{
Carousel
.
prototype
=
{
cycle
:
function
()
{
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
return
this
}
}
...
@@ -129,11 +130,11 @@
...
@@ -129,11 +130,11 @@
return
this
.
each
(
function
()
{
return
this
.
each
(
function
()
{
var
$this
=
$
(
this
)
var
$this
=
$
(
this
)
,
data
=
$this
.
data
(
'
carousel
'
)
,
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
(
!
data
)
$this
.
data
(
'
carousel
'
,
(
data
=
new
Carousel
(
this
,
options
)))
if
(
typeof
option
==
'
number
'
)
data
.
to
(
option
)
if
(
typeof
option
==
'
number
'
)
data
.
to
(
option
)
else
if
(
typeof
option
==
'
string
'
||
(
option
=
options
.
slide
))
data
[
option
]()
else
if
(
typeof
option
==
'
string
'
||
(
option
=
options
.
slide
))
data
[
option
]()
else
data
.
cycle
()
else
if
(
options
.
interval
)
data
.
cycle
()
})
})
}
}
...
...
docs/assets/js/bootstrap-typeahead.js
View file @
67f19967
...
@@ -109,7 +109,8 @@
...
@@ -109,7 +109,8 @@
}
}
,
highlighter
:
function
(
item
)
{
,
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>
'
return
'
<strong>
'
+
match
+
'
</strong>
'
})
})
}
}
...
...
docs/javascript.html
View file @
67f19967
...
@@ -1308,7 +1308,7 @@ $('#myCollapsible').on('hidden', function () {
...
@@ -1308,7 +1308,7 @@ $('#myCollapsible').on('hidden', function () {
<td>
interval
</td>
<td>
interval
</td>
<td>
number
</td>
<td>
number
</td>
<td>
5000
</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>
<tr>
<tr>
<td>
pause
</td>
<td>
pause
</td>
...
...
docs/templates/pages/javascript.mustache
View file @
67f19967
...
@@ -1232,7 +1232,7 @@ $('#myCollapsible').on('hidden', function () {
...
@@ -1232,7 +1232,7 @@ $('#myCollapsible').on('hidden', function () {
<td>
{{
_i
}}
interval
{{/
i
}}
</td>
<td>
{{
_i
}}
interval
{{/
i
}}
</td>
<td>
{{
_i
}}
number
{{/
i
}}
</td>
<td>
{{
_i
}}
number
{{/
i
}}
</td>
<td>
5000
</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>
<tr>
<tr>
<td>
{{
_i
}}
pause
{{/
i
}}
</td>
<td>
{{
_i
}}
pause
{{/
i
}}
</td>
...
...
js/bootstrap-carousel.js
View file @
67f19967
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
var
Carousel
=
function
(
element
,
options
)
{
var
Carousel
=
function
(
element
,
options
)
{
this
.
$element
=
$
(
element
)
this
.
$element
=
$
(
element
)
this
.
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
options
)
this
.
options
=
options
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
pause
==
'
hover
'
&&
this
.
$element
this
.
options
.
pause
==
'
hover
'
&&
this
.
$element
.
on
(
'
mouseenter
'
,
$
.
proxy
(
this
.
pause
,
this
))
.
on
(
'
mouseenter
'
,
$
.
proxy
(
this
.
pause
,
this
))
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
Carousel
.
prototype
=
{
Carousel
.
prototype
=
{
cycle
:
function
()
{
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
return
this
}
}
...
@@ -129,11 +130,11 @@
...
@@ -129,11 +130,11 @@
return
this
.
each
(
function
()
{
return
this
.
each
(
function
()
{
var
$this
=
$
(
this
)
var
$this
=
$
(
this
)
,
data
=
$this
.
data
(
'
carousel
'
)
,
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
(
!
data
)
$this
.
data
(
'
carousel
'
,
(
data
=
new
Carousel
(
this
,
options
)))
if
(
typeof
option
==
'
number
'
)
data
.
to
(
option
)
if
(
typeof
option
==
'
number
'
)
data
.
to
(
option
)
else
if
(
typeof
option
==
'
string
'
||
(
option
=
options
.
slide
))
data
[
option
]()
else
if
(
typeof
option
==
'
string
'
||
(
option
=
options
.
slide
))
data
[
option
]()
else
data
.
cycle
()
else
if
(
options
.
interval
)
data
.
cycle
()
})
})
}
}
...
...
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