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
7545da2e
Commit
7545da2e
authored
Nov 14, 2013
by
fat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #11477 and updates slid event in carousel with namespace
parent
57b59fcf
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
dist/js/bootstrap.js
dist/js/bootstrap.js
+5
-5
dist/js/bootstrap.min.js
dist/js/bootstrap.min.js
+1
-1
docs-assets/js/raw-files.js
docs-assets/js/raw-files.js
+2
-2
js/carousel.js
js/carousel.js
+4
-4
js/scrollspy.js
js/scrollspy.js
+1
-1
No files found.
dist/js/bootstrap.js
View file @
7545da2e
...
@@ -351,7 +351,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
...
@@ -351,7 +351,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
if
(
pos
>
(
this
.
$items
.
length
-
1
)
||
pos
<
0
)
return
if
(
pos
>
(
this
.
$items
.
length
-
1
)
||
pos
<
0
)
return
if
(
this
.
sliding
)
return
this
.
$element
.
one
(
'
slid
'
,
function
()
{
that
.
to
(
pos
)
})
if
(
this
.
sliding
)
return
this
.
$element
.
one
(
'
slid
.bs.carousel
'
,
function
()
{
that
.
to
(
pos
)
})
if
(
activeIndex
==
pos
)
return
this
.
pause
().
cycle
()
if
(
activeIndex
==
pos
)
return
this
.
pause
().
cycle
()
return
this
.
slide
(
pos
>
activeIndex
?
'
next
'
:
'
prev
'
,
$
(
this
.
$items
[
pos
]))
return
this
.
slide
(
pos
>
activeIndex
?
'
next
'
:
'
prev
'
,
$
(
this
.
$items
[
pos
]))
...
@@ -403,7 +403,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
...
@@ -403,7 +403,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
if
(
this
.
$indicators
.
length
)
{
if
(
this
.
$indicators
.
length
)
{
this
.
$indicators
.
find
(
'
.active
'
).
removeClass
(
'
active
'
)
this
.
$indicators
.
find
(
'
.active
'
).
removeClass
(
'
active
'
)
this
.
$element
.
one
(
'
slid
'
,
function
()
{
this
.
$element
.
one
(
'
slid
.bs.carousel
'
,
function
()
{
var
$nextIndicator
=
$
(
that
.
$indicators
.
children
()[
that
.
getActiveIndex
()])
var
$nextIndicator
=
$
(
that
.
$indicators
.
children
()[
that
.
getActiveIndex
()])
$nextIndicator
&&
$nextIndicator
.
addClass
(
'
active
'
)
$nextIndicator
&&
$nextIndicator
.
addClass
(
'
active
'
)
})
})
...
@@ -421,7 +421,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
...
@@ -421,7 +421,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
$next
.
removeClass
([
type
,
direction
].
join
(
'
'
)).
addClass
(
'
active
'
)
$next
.
removeClass
([
type
,
direction
].
join
(
'
'
)).
addClass
(
'
active
'
)
$active
.
removeClass
([
'
active
'
,
direction
].
join
(
'
'
))
$active
.
removeClass
([
'
active
'
,
direction
].
join
(
'
'
))
that
.
sliding
=
false
that
.
sliding
=
false
setTimeout
(
function
()
{
that
.
$element
.
trigger
(
'
slid
'
)
},
0
)
setTimeout
(
function
()
{
that
.
$element
.
trigger
(
'
slid
.bs.carousel
'
)
},
0
)
})
})
.
emulateTransitionEnd
(
600
)
.
emulateTransitionEnd
(
600
)
}
else
{
}
else
{
...
@@ -430,7 +430,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
...
@@ -430,7 +430,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
$active
.
removeClass
(
'
active
'
)
$active
.
removeClass
(
'
active
'
)
$next
.
addClass
(
'
active
'
)
$next
.
addClass
(
'
active
'
)
this
.
sliding
=
false
this
.
sliding
=
false
this
.
$element
.
trigger
(
'
slid
'
)
this
.
$element
.
trigger
(
'
slid
.bs.carousel
'
)
}
}
isCycling
&&
this
.
cycle
()
isCycling
&&
this
.
cycle
()
...
@@ -1700,7 +1700,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
...
@@ -1700,7 +1700,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
.
addClass
(
'
active
'
)
.
addClass
(
'
active
'
)
}
}
active
.
trigger
(
'
activate
'
)
active
.
trigger
(
'
activate
.bs.scrollspy
'
)
}
}
...
...
dist/js/bootstrap.min.js
View file @
7545da2e
This diff is collapsed.
Click to expand it.
docs-assets/js/raw-files.js
View file @
7545da2e
This diff is collapsed.
Click to expand it.
js/carousel.js
View file @
7545da2e
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
if
(
pos
>
(
this
.
$items
.
length
-
1
)
||
pos
<
0
)
return
if
(
pos
>
(
this
.
$items
.
length
-
1
)
||
pos
<
0
)
return
if
(
this
.
sliding
)
return
this
.
$element
.
one
(
'
slid
'
,
function
()
{
that
.
to
(
pos
)
})
if
(
this
.
sliding
)
return
this
.
$element
.
one
(
'
slid
.bs.carousel
'
,
function
()
{
that
.
to
(
pos
)
})
if
(
activeIndex
==
pos
)
return
this
.
pause
().
cycle
()
if
(
activeIndex
==
pos
)
return
this
.
pause
().
cycle
()
return
this
.
slide
(
pos
>
activeIndex
?
'
next
'
:
'
prev
'
,
$
(
this
.
$items
[
pos
]))
return
this
.
slide
(
pos
>
activeIndex
?
'
next
'
:
'
prev
'
,
$
(
this
.
$items
[
pos
]))
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
if
(
this
.
$indicators
.
length
)
{
if
(
this
.
$indicators
.
length
)
{
this
.
$indicators
.
find
(
'
.active
'
).
removeClass
(
'
active
'
)
this
.
$indicators
.
find
(
'
.active
'
).
removeClass
(
'
active
'
)
this
.
$element
.
one
(
'
slid
'
,
function
()
{
this
.
$element
.
one
(
'
slid
.bs.carousel
'
,
function
()
{
var
$nextIndicator
=
$
(
that
.
$indicators
.
children
()[
that
.
getActiveIndex
()])
var
$nextIndicator
=
$
(
that
.
$indicators
.
children
()[
that
.
getActiveIndex
()])
$nextIndicator
&&
$nextIndicator
.
addClass
(
'
active
'
)
$nextIndicator
&&
$nextIndicator
.
addClass
(
'
active
'
)
})
})
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
$next
.
removeClass
([
type
,
direction
].
join
(
'
'
)).
addClass
(
'
active
'
)
$next
.
removeClass
([
type
,
direction
].
join
(
'
'
)).
addClass
(
'
active
'
)
$active
.
removeClass
([
'
active
'
,
direction
].
join
(
'
'
))
$active
.
removeClass
([
'
active
'
,
direction
].
join
(
'
'
))
that
.
sliding
=
false
that
.
sliding
=
false
setTimeout
(
function
()
{
that
.
$element
.
trigger
(
'
slid
'
)
},
0
)
setTimeout
(
function
()
{
that
.
$element
.
trigger
(
'
slid
.bs.carousel
'
)
},
0
)
})
})
.
emulateTransitionEnd
(
600
)
.
emulateTransitionEnd
(
600
)
}
else
{
}
else
{
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
$active
.
removeClass
(
'
active
'
)
$active
.
removeClass
(
'
active
'
)
$next
.
addClass
(
'
active
'
)
$next
.
addClass
(
'
active
'
)
this
.
sliding
=
false
this
.
sliding
=
false
this
.
$element
.
trigger
(
'
slid
'
)
this
.
$element
.
trigger
(
'
slid
.bs.carousel
'
)
}
}
isCycling
&&
this
.
cycle
()
isCycling
&&
this
.
cycle
()
...
...
js/scrollspy.js
View file @
7545da2e
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
.
addClass
(
'
active
'
)
.
addClass
(
'
active
'
)
}
}
active
.
trigger
(
'
activate
'
)
active
.
trigger
(
'
activate
.bs.scrollspy
'
)
}
}
...
...
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