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
c93c3714
Commit
c93c3714
authored
11 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge branch 'master' of github.com:twbs/bootstrap
parents
b004c9ac
96525fde
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
Gruntfile.js
+1
-1
Gruntfile.js
bower.json
+2
-1
bower.json
dist/js/bootstrap.js
+4
-4
dist/js/bootstrap.js
grunt/sauce_browsers.yml
+0
-0
grunt/sauce_browsers.yml
js/affix.js
+1
-3
js/affix.js
js/modal.js
+1
-1
js/modal.js
js/scrollspy.js
+2
-2
js/scrollspy.js
js/tooltip.js
+1
-1
js/tooltip.js
with
12 additions
and
13 deletions
+12
-13
Gruntfile.js
+
1
-
1
View file @
c93c3714
...
@@ -390,7 +390,7 @@ module.exports = function (grunt) {
...
@@ -390,7 +390,7 @@ module.exports = function (grunt) {
build
:
process
.
env
.
TRAVIS_JOB_ID
,
build
:
process
.
env
.
TRAVIS_JOB_ID
,
concurrency
:
10
,
concurrency
:
10
,
urls
:
[
'
http://127.0.0.1:3000/js/tests/index.html
'
],
urls
:
[
'
http://127.0.0.1:3000/js/tests/index.html
'
],
browsers
:
grunt
.
file
.
readYAML
(
'
test-infra
/sauce_browsers.yml
'
)
browsers
:
grunt
.
file
.
readYAML
(
'
grunt
/sauce_browsers.yml
'
)
}
}
}
}
},
},
...
...
This diff is collapsed.
Click to expand it.
bower.json
+
2
-
1
View file @
c93c3714
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
"composer.json"
,
"composer.json"
,
"CONTRIBUTING.md"
,
"CONTRIBUTING.md"
,
"docs"
,
"docs"
,
"js/tests"
"js/tests"
,
"test-infra"
],
],
"dependencies"
:
{
"dependencies"
:
{
"jquery"
:
">= 1.9.0"
"jquery"
:
">= 1.9.0"
...
...
This diff is collapsed.
Click to expand it.
dist/js/bootstrap.js
+
4
-
4
View file @
c93c3714
...
@@ -817,7 +817,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
...
@@ -817,7 +817,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
}
}
Modal
.
prototype
.
toggle
=
function
(
_relatedTarget
)
{
Modal
.
prototype
.
toggle
=
function
(
_relatedTarget
)
{
return
this
[
!
this
.
isShown
?
'
show
'
:
'
hi
de
'
]
(
_relatedTarget
)
return
this
.
isShown
?
this
.
hide
()
:
t
hi
s
.
show
(
_relatedTarget
)
}
}
Modal
.
prototype
.
show
=
function
(
_relatedTarget
)
{
Modal
.
prototype
.
show
=
function
(
_relatedTarget
)
{
...
@@ -1208,7 +1208,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
...
@@ -1208,7 +1208,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
var
$parent
=
this
.
$element
.
parent
()
var
$parent
=
this
.
$element
.
parent
()
var
orgPlacement
=
placement
var
orgPlacement
=
placement
var
docScroll
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
var
docScroll
=
document
.
documentElement
.
scrollTop
var
parentWidth
=
this
.
options
.
container
==
'
body
'
?
window
.
innerWidth
:
$parent
.
outerWidth
()
var
parentWidth
=
this
.
options
.
container
==
'
body
'
?
window
.
innerWidth
:
$parent
.
outerWidth
()
var
parentHeight
=
this
.
options
.
container
==
'
body
'
?
window
.
innerHeight
:
$parent
.
outerHeight
()
var
parentHeight
=
this
.
options
.
container
==
'
body
'
?
window
.
innerHeight
:
$parent
.
outerHeight
()
var
parentLeft
=
this
.
options
.
container
==
'
body
'
?
0
:
$parent
.
offset
().
left
var
parentLeft
=
this
.
options
.
container
==
'
body
'
?
0
:
$parent
.
offset
().
left
...
@@ -1578,7 +1578,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
...
@@ -1578,7 +1578,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
this
.
$element
=
$
(
element
).
is
(
'
body
'
)
?
$
(
window
)
:
$
(
element
)
this
.
$element
=
$
(
element
).
is
(
'
body
'
)
?
$
(
window
)
:
$
(
element
)
this
.
$body
=
$
(
'
body
'
)
this
.
$body
=
$
(
'
body
'
)
this
.
$scrollElement
=
this
.
$element
.
on
(
'
scroll.bs.scroll
-
spy
.data-api
'
,
process
)
this
.
$scrollElement
=
this
.
$element
.
on
(
'
scroll.bs.scrollspy
'
,
process
)
this
.
options
=
$
.
extend
({},
ScrollSpy
.
DEFAULTS
,
options
)
this
.
options
=
$
.
extend
({},
ScrollSpy
.
DEFAULTS
,
options
)
this
.
selector
=
(
this
.
options
.
target
this
.
selector
=
(
this
.
options
.
target
||
((
href
=
$
(
element
).
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
||
((
href
=
$
(
element
).
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
...
@@ -1702,7 +1702,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
...
@@ -1702,7 +1702,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
// SCROLLSPY DATA-API
// SCROLLSPY DATA-API
// ==================
// ==================
$
(
window
).
on
(
'
load
'
,
function
()
{
$
(
window
).
on
(
'
load
.bs.scrollspy.data-api
'
,
function
()
{
$
(
'
[data-spy="scroll"]
'
).
each
(
function
()
{
$
(
'
[data-spy="scroll"]
'
).
each
(
function
()
{
var
$spy
=
$
(
this
)
var
$spy
=
$
(
this
)
$spy
.
scrollspy
(
$spy
.
data
())
$spy
.
scrollspy
(
$spy
.
data
())
...
...
This diff is collapsed.
Click to expand it.
test-infra
/sauce_browsers.yml
→
grunt
/sauce_browsers.yml
+
0
-
0
View file @
c93c3714
File moved
This diff is collapsed.
Click to expand it.
js/affix.js
+
1
-
3
View file @
c93c3714
...
@@ -55,8 +55,6 @@
...
@@ -55,8 +55,6 @@
var
offsetTop
=
offset
.
top
var
offsetTop
=
offset
.
top
var
offsetBottom
=
offset
.
bottom
var
offsetBottom
=
offset
.
bottom
if
(
this
.
affixed
==
'
top
'
)
position
.
top
+=
scrollTop
if
(
typeof
offset
!=
'
object
'
)
offsetBottom
=
offsetTop
=
offset
if
(
typeof
offset
!=
'
object
'
)
offsetBottom
=
offsetTop
=
offset
if
(
typeof
offsetTop
==
'
function
'
)
offsetTop
=
offset
.
top
(
this
.
$element
)
if
(
typeof
offsetTop
==
'
function
'
)
offsetTop
=
offset
.
top
(
this
.
$element
)
if
(
typeof
offsetBottom
==
'
function
'
)
offsetBottom
=
offset
.
bottom
(
this
.
$element
)
if
(
typeof
offsetBottom
==
'
function
'
)
offsetBottom
=
offset
.
bottom
(
this
.
$element
)
...
@@ -84,7 +82,7 @@
...
@@ -84,7 +82,7 @@
.
trigger
(
$
.
Event
(
affixType
.
replace
(
'
affix
'
,
'
affixed
'
)))
.
trigger
(
$
.
Event
(
affixType
.
replace
(
'
affix
'
,
'
affixed
'
)))
if
(
affix
==
'
bottom
'
)
{
if
(
affix
==
'
bottom
'
)
{
this
.
$element
.
offset
({
top
:
scrollHeight
-
offsetBottom
-
this
.
$element
.
height
()
})
this
.
$element
.
offset
({
top
:
position
.
top
})
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
js/modal.js
+
1
-
1
View file @
c93c3714
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
}
}
Modal
.
prototype
.
toggle
=
function
(
_relatedTarget
)
{
Modal
.
prototype
.
toggle
=
function
(
_relatedTarget
)
{
return
this
[
!
this
.
isShown
?
'
show
'
:
'
hi
de
'
]
(
_relatedTarget
)
return
this
.
isShown
?
this
.
hide
()
:
t
hi
s
.
show
(
_relatedTarget
)
}
}
Modal
.
prototype
.
show
=
function
(
_relatedTarget
)
{
Modal
.
prototype
.
show
=
function
(
_relatedTarget
)
{
...
...
This diff is collapsed.
Click to expand it.
js/scrollspy.js
+
2
-
2
View file @
c93c3714
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
this
.
$element
=
$
(
element
).
is
(
'
body
'
)
?
$
(
window
)
:
$
(
element
)
this
.
$element
=
$
(
element
).
is
(
'
body
'
)
?
$
(
window
)
:
$
(
element
)
this
.
$body
=
$
(
'
body
'
)
this
.
$body
=
$
(
'
body
'
)
this
.
$scrollElement
=
this
.
$element
.
on
(
'
scroll.bs.scroll
-
spy
.data-api
'
,
process
)
this
.
$scrollElement
=
this
.
$element
.
on
(
'
scroll.bs.scrollspy
'
,
process
)
this
.
options
=
$
.
extend
({},
ScrollSpy
.
DEFAULTS
,
options
)
this
.
options
=
$
.
extend
({},
ScrollSpy
.
DEFAULTS
,
options
)
this
.
selector
=
(
this
.
options
.
target
this
.
selector
=
(
this
.
options
.
target
||
((
href
=
$
(
element
).
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
||
((
href
=
$
(
element
).
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
// SCROLLSPY DATA-API
// SCROLLSPY DATA-API
// ==================
// ==================
$
(
window
).
on
(
'
load
'
,
function
()
{
$
(
window
).
on
(
'
load
.bs.scrollspy.data-api
'
,
function
()
{
$
(
'
[data-spy="scroll"]
'
).
each
(
function
()
{
$
(
'
[data-spy="scroll"]
'
).
each
(
function
()
{
var
$spy
=
$
(
this
)
var
$spy
=
$
(
this
)
$spy
.
scrollspy
(
$spy
.
data
())
$spy
.
scrollspy
(
$spy
.
data
())
...
...
This diff is collapsed.
Click to expand it.
js/tooltip.js
+
1
-
1
View file @
c93c3714
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
var
$parent
=
this
.
$element
.
parent
()
var
$parent
=
this
.
$element
.
parent
()
var
orgPlacement
=
placement
var
orgPlacement
=
placement
var
docScroll
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
var
docScroll
=
document
.
documentElement
.
scrollTop
var
parentWidth
=
this
.
options
.
container
==
'
body
'
?
window
.
innerWidth
:
$parent
.
outerWidth
()
var
parentWidth
=
this
.
options
.
container
==
'
body
'
?
window
.
innerWidth
:
$parent
.
outerWidth
()
var
parentHeight
=
this
.
options
.
container
==
'
body
'
?
window
.
innerHeight
:
$parent
.
outerHeight
()
var
parentHeight
=
this
.
options
.
container
==
'
body
'
?
window
.
innerHeight
:
$parent
.
outerHeight
()
var
parentLeft
=
this
.
options
.
container
==
'
body
'
?
0
:
$parent
.
offset
().
left
var
parentLeft
=
this
.
options
.
container
==
'
body
'
?
0
:
$parent
.
offset
().
left
...
...
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