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
354d4236
Commit
354d4236
authored
Jul 06, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grunt
parent
ac18e581
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
27 deletions
+36
-27
dist/js/bootstrap.js
dist/js/bootstrap.js
+15
-12
dist/js/bootstrap.min.js
dist/js/bootstrap.min.js
+1
-1
docs/assets/js/raw-files.min.js
docs/assets/js/raw-files.min.js
+2
-2
docs/dist/js/bootstrap.js
docs/dist/js/bootstrap.js
+17
-11
docs/dist/js/bootstrap.min.js
docs/dist/js/bootstrap.min.js
+1
-1
No files found.
dist/js/bootstrap.js
View file @
354d4236
...
...
@@ -584,8 +584,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
this
.
$element
.
addClass
(
'
collapsing
'
)
.
removeClass
(
'
collapse
'
)
.
removeClass
(
'
in
'
)
.
removeClass
(
'
collapse in
'
)
this
.
transitioning
=
1
...
...
@@ -657,7 +656,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
if
(
!
data
||
!
data
.
transitioning
)
{
if
(
$parent
)
$parent
.
find
(
'
[data-toggle="collapse"][data-parent="
'
+
parent
+
'
"]
'
).
not
(
$this
).
addClass
(
'
collapsed
'
)
$this
[
$target
.
hasClass
(
'
in
'
)
?
'
addClass
'
:
'
removeClass
'
](
'
collapsed
'
)
$this
.
toggleClass
(
'
collapsed
'
,
$target
.
hasClass
(
'
in
'
)
)
}
Plugin
.
call
(
$target
,
option
)
...
...
@@ -954,11 +953,11 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
Modal
.
prototype
.
escape
=
function
()
{
if
(
this
.
isShown
&&
this
.
options
.
keyboard
)
{
this
.
$element
.
on
(
'
key
up
.dismiss.bs.modal
'
,
$
.
proxy
(
function
(
e
)
{
this
.
$element
.
on
(
'
key
down
.dismiss.bs.modal
'
,
$
.
proxy
(
function
(
e
)
{
e
.
which
==
27
&&
this
.
hide
()
},
this
))
}
else
if
(
!
this
.
isShown
)
{
this
.
$element
.
off
(
'
key
up
.dismiss.bs.modal
'
)
this
.
$element
.
off
(
'
key
down
.dismiss.bs.modal
'
)
}
}
...
...
@@ -985,7 +984,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
this
.
$backdrop
=
$
(
'
<div class="modal-backdrop
'
+
animate
+
'
" />
'
)
.
appendTo
(
this
.
$body
)
this
.
$element
.
on
(
'
click
.dismiss.bs.modal
'
,
$
.
proxy
(
function
(
e
)
{
this
.
$element
.
on
(
'
mousedown
.dismiss.bs.modal
'
,
$
.
proxy
(
function
(
e
)
{
if
(
e
.
target
!==
e
.
currentTarget
)
return
this
.
options
.
backdrop
==
'
static
'
?
this
.
$element
[
0
].
focus
.
call
(
this
.
$element
[
0
])
...
...
@@ -1416,16 +1415,20 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
Tooltip
.
prototype
.
getPosition
=
function
(
$element
)
{
$element
=
$element
||
this
.
$element
var
el
=
$element
[
0
]
var
isBody
=
el
.
tagName
==
'
BODY
'
var
isSvg
=
window
.
SVGElement
&&
el
instanceof
window
.
SVGElement
var
isSvg
=
window
.
SVGElement
&&
el
instanceof
window
.
SVGElement
var
elRect
=
typeof
el
.
getBoundingClientRect
==
'
function
'
?
el
.
getBoundingClientRect
()
:
null
var
elOffset
=
isBody
?
{
top
:
0
,
left
:
0
}
:
$element
.
offset
()
var
scroll
=
{
scroll
:
isBody
?
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
:
$element
.
scrollTop
()
}
var
outerDims
=
isSvg
?
{}
:
{
width
:
isBody
?
$
(
window
).
width
()
:
$element
.
outerWidth
(),
height
:
isBody
?
$
(
window
).
height
()
:
$element
.
outerHeight
()
}
return
$
.
extend
({},
(
typeof
el
.
getBoundingClientRect
==
'
function
'
)
?
el
.
getBoundingClientRect
()
:
null
,
{
scroll
:
isBody
?
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
:
$element
.
scrollTop
()
},
outerDims
,
isBody
?
{
top
:
0
,
left
:
0
}
:
$element
.
offset
())
return
$
.
extend
({},
elRect
,
scroll
,
outerDims
,
elOffset
)
}
Tooltip
.
prototype
.
getCalculatedOffset
=
function
(
placement
,
pos
,
actualWidth
,
actualHeight
)
{
...
...
@@ -1901,7 +1904,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
var
$active
=
container
.
find
(
'
> .active
'
)
var
transition
=
callback
&&
$
.
support
.
transition
&&
$active
.
hasClass
(
'
fade
'
)
&&
((
$active
.
length
&&
$active
.
hasClass
(
'
fade
'
))
||
!!
container
.
find
(
'
> .fade
'
).
length
)
function
next
()
{
$active
...
...
@@ -1925,7 +1928,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
callback
&&
callback
()
}
transition
?
$active
.
length
&&
transition
?
$active
.
one
(
'
bsTransitionEnd
'
,
next
)
.
emulateTransitionEnd
(
150
)
:
...
...
dist/js/bootstrap.min.js
View file @
354d4236
This diff is collapsed.
Click to expand it.
docs/assets/js/raw-files.min.js
View file @
354d4236
This diff is collapsed.
Click to expand it.
docs/dist/js/bootstrap.js
View file @
354d4236
...
...
@@ -584,8 +584,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
this
.
$element
.
addClass
(
'
collapsing
'
)
.
removeClass
(
'
collapse
'
)
.
removeClass
(
'
in
'
)
.
removeClass
(
'
collapse in
'
)
this
.
transitioning
=
1
...
...
@@ -657,7 +656,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
if
(
!
data
||
!
data
.
transitioning
)
{
if
(
$parent
)
$parent
.
find
(
'
[data-toggle="collapse"][data-parent="
'
+
parent
+
'
"]
'
).
not
(
$this
).
addClass
(
'
collapsed
'
)
$this
[
$target
.
hasClass
(
'
in
'
)
?
'
addClass
'
:
'
removeClass
'
](
'
collapsed
'
)
$this
.
toggleClass
(
'
collapsed
'
,
$target
.
hasClass
(
'
in
'
)
)
}
Plugin
.
call
(
$target
,
option
)
...
...
@@ -954,11 +953,11 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
Modal
.
prototype
.
escape
=
function
()
{
if
(
this
.
isShown
&&
this
.
options
.
keyboard
)
{
this
.
$element
.
on
(
'
key
up
.dismiss.bs.modal
'
,
$
.
proxy
(
function
(
e
)
{
this
.
$element
.
on
(
'
key
down
.dismiss.bs.modal
'
,
$
.
proxy
(
function
(
e
)
{
e
.
which
==
27
&&
this
.
hide
()
},
this
))
}
else
if
(
!
this
.
isShown
)
{
this
.
$element
.
off
(
'
key
up
.dismiss.bs.modal
'
)
this
.
$element
.
off
(
'
key
down
.dismiss.bs.modal
'
)
}
}
...
...
@@ -985,7 +984,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
this
.
$backdrop
=
$
(
'
<div class="modal-backdrop
'
+
animate
+
'
" />
'
)
.
appendTo
(
this
.
$body
)
this
.
$element
.
on
(
'
click
.dismiss.bs.modal
'
,
$
.
proxy
(
function
(
e
)
{
this
.
$element
.
on
(
'
mousedown
.dismiss.bs.modal
'
,
$
.
proxy
(
function
(
e
)
{
if
(
e
.
target
!==
e
.
currentTarget
)
return
this
.
options
.
backdrop
==
'
static
'
?
this
.
$element
[
0
].
focus
.
call
(
this
.
$element
[
0
])
...
...
@@ -1416,13 +1415,20 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
Tooltip
.
prototype
.
getPosition
=
function
(
$element
)
{
$element
=
$element
||
this
.
$element
var
el
=
$element
[
0
]
var
isBody
=
el
.
tagName
==
'
BODY
'
return
$
.
extend
({},
(
typeof
el
.
getBoundingClientRect
==
'
function
'
)
?
el
.
getBoundingClientRect
()
:
null
,
{
scroll
:
isBody
?
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
:
$element
.
scrollTop
(),
var
isSvg
=
window
.
SVGElement
&&
el
instanceof
window
.
SVGElement
var
elRect
=
typeof
el
.
getBoundingClientRect
==
'
function
'
?
el
.
getBoundingClientRect
()
:
null
var
elOffset
=
isBody
?
{
top
:
0
,
left
:
0
}
:
$element
.
offset
()
var
scroll
=
{
scroll
:
isBody
?
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
:
$element
.
scrollTop
()
}
var
outerDims
=
isSvg
?
{}
:
{
width
:
isBody
?
$
(
window
).
width
()
:
$element
.
outerWidth
(),
height
:
isBody
?
$
(
window
).
height
()
:
$element
.
outerHeight
()
},
isBody
?
{
top
:
0
,
left
:
0
}
:
$element
.
offset
())
}
return
$
.
extend
({},
elRect
,
scroll
,
outerDims
,
elOffset
)
}
Tooltip
.
prototype
.
getCalculatedOffset
=
function
(
placement
,
pos
,
actualWidth
,
actualHeight
)
{
...
...
@@ -1898,7 +1904,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
var
$active
=
container
.
find
(
'
> .active
'
)
var
transition
=
callback
&&
$
.
support
.
transition
&&
$active
.
hasClass
(
'
fade
'
)
&&
((
$active
.
length
&&
$active
.
hasClass
(
'
fade
'
))
||
!!
container
.
find
(
'
> .fade
'
).
length
)
function
next
()
{
$active
...
...
@@ -1922,7 +1928,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
callback
&&
callback
()
}
transition
?
$active
.
length
&&
transition
?
$active
.
one
(
'
bsTransitionEnd
'
,
next
)
.
emulateTransitionEnd
(
150
)
:
...
...
docs/dist/js/bootstrap.min.js
View file @
354d4236
This diff is collapsed.
Click to expand it.
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