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
24527682
Commit
24527682
authored
Jan 28, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
parents
28ba9d69
c2c02d10
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
44 additions
and
29 deletions
+44
-29
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+1
-1
docs/assets/js/application.js
docs/assets/js/application.js
+0
-6
js/bootstrap-alert.js
js/bootstrap-alert.js
+8
-2
js/bootstrap-carousel.js
js/bootstrap-carousel.js
+2
-2
js/bootstrap-collapse.js
js/bootstrap-collapse.js
+4
-2
js/bootstrap-dropdown.js
js/bootstrap-dropdown.js
+14
-5
js/bootstrap-modal.js
js/bootstrap-modal.js
+2
-2
js/bootstrap-scrollspy.js
js/bootstrap-scrollspy.js
+2
-1
js/bootstrap-tab.js
js/bootstrap-tab.js
+9
-4
js/bootstrap-tooltip.js
js/bootstrap-tooltip.js
+0
-1
js/tests/unit/bootstrap-popover.js
js/tests/unit/bootstrap-popover.js
+1
-1
js/tests/unit/bootstrap-tab.js
js/tests/unit/bootstrap-tab.js
+0
-1
js/tests/unit/bootstrap-transition.js
js/tests/unit/bootstrap-transition.js
+1
-1
No files found.
docs/assets/css/bootstrap.css
View file @
24527682
...
...
@@ -1983,7 +1983,7 @@ table .span12 {
.navbar-search
.search-query
:-moz-placeholder
{
color
:
#eeeeee
;
}
.navbar-search
.search-query
::-webkit-input-placeholder
{
.navbar-search
.search-query
::-webkit-input-placeholder
{
color
:
#eeeeee
;
}
.navbar-search
.search-query
:hover
{
...
...
docs/assets/js/application.js
View file @
24527682
...
...
@@ -14,12 +14,6 @@
// make code pretty
window
.
prettyPrint
&&
prettyPrint
()
// table sort example
if
(
$
.
fn
.
tablesorter
)
{
$
(
"
#sortTableExample
"
).
tablesorter
({
sortList
:
[[
1
,
0
]]
})
$
(
"
.tablesorter-example
"
).
tablesorter
({
sortList
:
[[
1
,
0
]]
})
}
// add-ons
$
(
'
.add-on :checkbox
'
).
on
(
'
click
'
,
function
()
{
var
$this
=
$
(
this
)
...
...
js/bootstrap-alert.js
View file @
24527682
...
...
@@ -36,9 +36,15 @@
,
close
:
function
(
e
)
{
var
$this
=
$
(
this
)
,
selector
=
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
)
,
$parent
=
$
(
selector
)
,
selector
=
$this
.
attr
(
'
data-target
'
)
,
$parent
if
(
!
selector
)
{
selector
=
$this
.
attr
(
'
href
'
)
selector
=
selector
&&
selector
.
replace
(
/.*
(?=
#
[^\s]
*$
)
/
,
''
)
//strip for ie7
}
$parent
=
$
(
selector
)
$parent
.
trigger
(
'
close
'
)
e
&&
e
.
preventDefault
()
...
...
js/bootstrap-carousel.js
View file @
24527682
...
...
@@ -143,8 +143,8 @@
$
(
function
()
{
$
(
'
body
'
).
on
(
'
click.carousel.data-api
'
,
'
[data-slide]
'
,
function
(
e
)
{
var
$this
=
$
(
this
)
,
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
))
var
$this
=
$
(
this
)
,
href
,
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
,
options
=
!
$target
.
data
(
'
modal
'
)
&&
$
.
extend
({},
$target
.
data
(),
$this
.
data
())
$target
.
carousel
(
options
)
e
.
preventDefault
()
...
...
js/bootstrap-collapse.js
View file @
24527682
...
...
@@ -124,8 +124,10 @@
$
(
function
()
{
$
(
'
body
'
).
on
(
'
click.collapse.data-api
'
,
'
[data-toggle=collapse]
'
,
function
(
e
)
{
var
$this
=
$
(
this
)
,
target
=
$this
.
attr
(
'
data-target
'
)
||
e
.
preventDefault
()
||
$this
.
attr
(
'
href
'
)
var
$this
=
$
(
this
),
href
,
target
=
$this
.
attr
(
'
data-target
'
)
||
e
.
preventDefault
()
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
)
//strip for ie7
,
option
=
$
(
target
).
data
(
'
collapse
'
)
?
'
toggle
'
:
$this
.
data
()
$
(
target
).
collapse
(
option
)
})
...
...
js/bootstrap-dropdown.js
View file @
24527682
...
...
@@ -27,7 +27,10 @@
var
toggle
=
'
[data-toggle="dropdown"]
'
,
Dropdown
=
function
(
element
)
{
$
(
element
).
bind
(
'
click
'
,
this
.
toggle
)
var
$el
=
$
(
element
).
on
(
'
click.dropdown.data-api
'
,
this
.
toggle
)
$
(
'
html
'
).
on
(
'
click.dropdown.data-api
'
,
function
()
{
$el
.
parent
().
removeClass
(
'
open
'
)
})
}
Dropdown
.
prototype
=
{
...
...
@@ -36,15 +39,21 @@
,
toggle
:
function
(
e
)
{
var
$this
=
$
(
this
)
,
selector
=
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
)
,
$parent
=
$
(
selector
)
,
selector
=
$this
.
attr
(
'
data-target
'
)
,
$parent
,
isActive
if
(
!
selector
)
{
selector
=
$this
.
attr
(
'
href
'
)
selector
=
selector
&&
selector
.
replace
(
/.*
(?=
#
[^\s]
*$
)
/
,
''
)
//strip for ie7
}
$parent
=
$
(
selector
)
$parent
.
length
||
(
$parent
=
$this
.
parent
())
isActive
=
$parent
.
hasClass
(
'
open
'
)
clearMenus
()
!
isActive
&&
$parent
.
toggleClass
(
'
open
'
)
return
false
...
...
@@ -76,7 +85,7 @@
* =================================== */
$
(
function
()
{
$
(
window
).
on
(
'
click.dropdown.data-api
'
,
clearMenus
)
$
(
'
html
'
).
on
(
'
click.dropdown.data-api
'
,
clearMenus
)
$
(
'
body
'
).
on
(
'
click.dropdown.data-api
'
,
toggle
,
Dropdown
.
prototype
.
toggle
)
})
...
...
js/bootstrap-modal.js
View file @
24527682
...
...
@@ -193,8 +193,8 @@
$
(
function
()
{
$
(
'
body
'
).
on
(
'
click.modal.data-api
'
,
'
[data-toggle="modal"]
'
,
function
(
e
)
{
var
$this
=
$
(
this
)
,
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
))
var
$this
=
$
(
this
)
,
href
,
$target
=
$
(
$this
.
attr
(
'
data-target
'
)
||
(
href
=
$this
.
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
,
option
=
$target
.
data
(
'
modal
'
)
?
'
toggle
'
:
$
.
extend
({},
$target
.
data
(),
$this
.
data
())
e
.
preventDefault
()
...
...
js/bootstrap-scrollspy.js
View file @
24527682
...
...
@@ -27,10 +27,11 @@
function
ScrollSpy
(
element
,
options
)
{
var
process
=
$
.
proxy
(
this
.
process
,
this
)
,
$element
=
$
(
element
).
is
(
'
body
'
)
?
$
(
window
)
:
$
(
element
)
,
href
this
.
options
=
$
.
extend
({},
$
.
fn
.
scrollspy
.
defaults
,
options
)
this
.
$scrollElement
=
$element
.
on
(
'
scroll.scroll.data-api
'
,
process
)
this
.
selector
=
(
this
.
options
.
target
||
$
(
element
).
attr
(
'
href
'
)
||
((
href
=
$
(
element
).
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
||
''
)
+
'
.nav li > a
'
this
.
$body
=
$
(
'
body
'
).
on
(
'
click.scroll.data-api
'
,
this
.
selector
,
process
)
this
.
refresh
()
...
...
js/bootstrap-tab.js
View file @
24527682
...
...
@@ -36,9 +36,14 @@
,
show
:
function
()
{
var
$this
=
this
.
element
,
$ul
=
$this
.
closest
(
'
ul:not(.dropdown-menu)
'
)
,
href
=
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
)
,
selector
=
$this
.
attr
(
'
data-target
'
)
,
previous
,
$href
,
$target
if
(
!
selector
)
{
selector
=
$this
.
attr
(
'
href
'
)
selector
=
selector
&&
selector
.
replace
(
/.*
(?=
#
[^\s]
*$
)
/
,
''
)
//strip for ie7
}
if
(
$this
.
parent
(
'
li
'
).
hasClass
(
'
active
'
)
)
return
...
...
@@ -49,10 +54,10 @@
,
relatedTarget
:
previous
})
$
href
=
$
(
href
)
$
target
=
$
(
selector
)
this
.
activate
(
$this
.
parent
(
'
li
'
),
$ul
)
this
.
activate
(
$
href
,
$href
.
parent
(),
function
()
{
this
.
activate
(
$
target
,
$target
.
parent
(),
function
()
{
$this
.
trigger
({
type
:
'
shown
'
,
relatedTarget
:
previous
...
...
js/bootstrap-tooltip.js
View file @
24527682
...
...
@@ -145,7 +145,6 @@
break
}
debugger
if
(
this
.
options
[
'
z-index
'
])
tp
[
'
z-index
'
]
=
this
.
options
[
'
z-index
'
]
$tip
...
...
js/tests/unit/bootstrap-popover.js
View file @
24527682
...
...
@@ -82,7 +82,7 @@ $(function () {
})
popover
.
popover
(
'
show
'
)
console
.
log
(
popover
)
ok
(
$
(
'
.popover
'
).
length
,
'
popover was inserted
'
)
ok
(
$
(
'
.popover
'
).
hasClass
(
'
foobar
'
),
'
custom class is present
'
)
...
...
js/tests/unit/bootstrap-tab.js
View file @
24527682
...
...
@@ -17,7 +17,6 @@ $(function () {
+
'
<li><a href="#profile">Profile</a></li>
'
+
'
</ul>
'
$
(
'
<ul><li id="home"></li><li id="profile"></li></ul>
'
).
appendTo
(
"
#qunit-fixture
"
)
$
(
tabsHTML
).
find
(
'
li:last a
'
).
tab
(
'
show
'
)
...
...
js/tests/unit/bootstrap-transition.js
View file @
24527682
...
...
@@ -7,7 +7,7 @@ $(function () {
})
test
(
"
should provide an end object
"
,
function
()
{
ok
(
$
.
support
.
transition
.
end
,
'
end string is defined
'
)
ok
(
$
.
support
.
transition
?
$
.
support
.
transition
.
end
:
true
,
'
end string is defined
'
)
})
})
\ No newline at end of file
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