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
0afba386
Commit
0afba386
authored
Sep 11, 2011
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.3-wip' of github.com:twitter/bootstrap into 1.3-wip
parents
b77e3e2f
f8aaec52
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
145 additions
and
79 deletions
+145
-79
docs/assets/js/application.js
docs/assets/js/application.js
+1
-1
docs/index.html
docs/index.html
+1
-1
docs/javascript.html
docs/javascript.html
+110
-44
js/bootstrap-alerts.js
js/bootstrap-alerts.js
+26
-15
js/bootstrap-popover.js
js/bootstrap-popover.js
+7
-15
js/bootstrap-twipsy.js
js/bootstrap-twipsy.js
+0
-3
No files found.
docs/assets/js/application.js
View file @
0afba386
...
@@ -51,7 +51,7 @@ $(document).ready(function(){
...
@@ -51,7 +51,7 @@ $(document).ready(function(){
,
trigger
:
'
manual
'
,
trigger
:
'
manual
'
,
offset
:
2
,
offset
:
2
})
})
.
t
rigger
(
'
twipsy:
show
'
)
.
t
wipsy
(
'
show
'
)
})
})
})
})
});
});
docs/index.html
View file @
0afba386
...
@@ -1331,7 +1331,7 @@
...
@@ -1331,7 +1331,7 @@
<li><a
href=
"#"
>
Messages
</a></li>
<li><a
href=
"#"
>
Messages
</a></li>
<li><a
href=
"#"
>
Settings
</a></li>
<li><a
href=
"#"
>
Settings
</a></li>
<li><a
href=
"#"
>
Contact
</a></li>
<li><a
href=
"#"
>
Contact
</a></li>
<li
class=
"dropdown"
>
<li
class=
"dropdown"
data-dropdown
>
<a
href=
"#"
class=
"dropdown-toggle"
>
Dropdown
</a>
<a
href=
"#"
class=
"dropdown-toggle"
>
Dropdown
</a>
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Secondary link
</a></li>
<li><a
href=
"#"
>
Secondary link
</a></li>
...
...
docs/javascript.html
View file @
0afba386
This diff is collapsed.
Click to expand it.
js/bootstrap-alerts.js
View file @
0afba386
...
@@ -51,30 +51,25 @@
...
@@ -51,30 +51,25 @@
/* ALERT CLASS DEFINITION
/* ALERT CLASS DEFINITION
* ====================== */
* ====================== */
var
Alert
=
function
(
content
)
{
var
Alert
=
function
(
content
,
selector
)
{
var
that
=
this
this
.
$element
=
$
(
content
)
this
.
$element
=
$
(
content
)
.
bind
(
'
alert:hide
'
,
$
.
proxy
(
this
.
close
,
this
))
.
delegate
(
selector
||
'
.close
'
,
'
click
'
,
this
.
close
)
.
delegate
(
'
.close
'
,
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
that
.
close
()
})
}
}
Alert
.
prototype
=
{
Alert
.
prototype
=
{
close
:
function
()
{
close
:
function
(
e
)
{
var
that
=
this
var
$element
=
$
(
this
).
parent
(
'
.alert-message
'
)
this
.
$element
.
removeClass
(
'
in
'
)
e
&&
e
.
preventDefault
()
$element
.
removeClass
(
'
in
'
)
function
removeElement
()
{
function
removeElement
()
{
that
.
$element
.
remove
()
$element
.
remove
()
that
.
$element
=
null
}
}
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)
?
$
.
support
.
transition
&&
$element
.
hasClass
(
'
fade
'
)
?
this
.
$element
.
bind
(
transitionEnd
,
removeElement
)
:
$element
.
bind
(
transitionEnd
,
removeElement
)
:
removeElement
()
removeElement
()
}
}
...
@@ -85,9 +80,25 @@
...
@@ -85,9 +80,25 @@
* ======================= */
* ======================= */
$
.
fn
.
alert
=
function
(
options
)
{
$
.
fn
.
alert
=
function
(
options
)
{
if
(
options
===
true
)
{
return
this
.
data
(
'
alert
'
)
}
return
this
.
each
(
function
()
{
return
this
.
each
(
function
()
{
new
Alert
(
this
)
var
$this
=
$
(
this
)
if
(
typeof
options
==
'
string
'
)
{
return
$this
.
data
(
'
alert
'
)[
options
]()
}
$
(
this
).
data
(
'
alert
'
,
new
Alert
(
this
))
})
})
}
}
$
(
function
()
{
new
Alert
(
$
(
'
body
'
),
'
.alert-message[data-alert] .close
'
)
})
})(
jQuery
||
ender
)
})(
jQuery
||
ender
)
\ No newline at end of file
js/bootstrap-popover.js
View file @
0afba386
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
this
.
$element
=
$
(
element
)
this
.
$element
=
$
(
element
)
this
.
options
=
options
this
.
options
=
options
this
.
enabled
=
true
this
.
enabled
=
true
this
.
fixTitle
()
}
}
/* NOTE: POPOVER EXTENDS BOOTSTRAP-TWIPSY.js
/* NOTE: POPOVER EXTENDS BOOTSTRAP-TWIPSY.js
...
@@ -38,22 +39,13 @@
...
@@ -38,22 +39,13 @@
$tip
[
0
].
className
=
'
popover
'
$tip
[
0
].
className
=
'
popover
'
}
}
,
fixTitle
:
function
()
{}
,
getContent
:
function
()
{
var
contentvar
,
$e
=
this
.
$element
,
o
=
this
.
options
,
getTitle
:
function
()
{
var
title
if
(
typeof
this
.
options
.
title
==
'
string
'
)
{
title
=
this
.
$element
.
attr
(
'
data-title
'
)
||
this
.
options
.
title
}
else
if
(
typeof
this
.
options
.
title
==
'
function
'
)
{
title
=
this
.
options
.
title
.
call
(
this
.
$element
[
0
])
}
return
title
}
,
getContent
:
function
()
{
content
var
content
if
(
typeof
this
.
options
.
content
==
'
string
'
)
{
if
(
typeof
this
.
options
.
content
==
'
string
'
)
{
content
=
this
.
$element
.
attr
(
'
data-content
'
)
||
this
.
options
.
content
content
=
$e
.
attr
(
o
.
content
)
}
else
if
(
typeof
this
.
options
.
content
==
'
function
'
)
{
}
else
if
(
typeof
this
.
options
.
content
==
'
function
'
)
{
content
=
this
.
options
.
content
.
call
(
this
.
$element
[
0
])
content
=
this
.
options
.
content
.
call
(
this
.
$element
[
0
])
}
}
...
@@ -80,6 +72,6 @@
...
@@ -80,6 +72,6 @@
return
this
return
this
}
}
$
.
fn
.
popover
.
defaults
=
$
.
extend
({}
,
$
.
fn
.
twipsy
.
defaults
,
{
content
:
'
content
'
,
placement
:
'
right
'
})
$
.
fn
.
popover
.
defaults
=
$
.
extend
({}
,
$
.
fn
.
twipsy
.
defaults
,
{
content
:
'
data-
content
'
,
placement
:
'
right
'
})
})(
jQuery
||
ender
)
})(
jQuery
||
ender
)
\ No newline at end of file
js/bootstrap-twipsy.js
View file @
0afba386
...
@@ -282,9 +282,6 @@
...
@@ -282,9 +282,6 @@
this
[
binder
](
eventIn
,
enter
)[
binder
](
eventOut
,
leave
)
this
[
binder
](
eventIn
,
enter
)[
binder
](
eventOut
,
leave
)
}
}
this
.
bind
(
name
+
'
:show
'
,
enter
)
this
.
bind
(
name
+
'
:hide
'
,
leave
)
return
this
return
this
}
}
...
...
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