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
200f5817
Commit
200f5817
authored
Sep 11, 2011
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
method invocation jqueryui style
parent
e255b4f5
Changes
6
Expand all
Hide 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 @
200f5817
...
...
@@ -51,7 +51,7 @@ $(document).ready(function(){
,
trigger
:
'
manual
'
,
offset
:
2
})
.
t
rigger
(
'
twipsy:
show
'
)
.
t
wipsy
(
'
show
'
)
})
})
});
docs/index.html
View file @
200f5817
...
...
@@ -1324,7 +1324,7 @@
<li><a
href=
"#"
>
Messages
</a></li>
<li><a
href=
"#"
>
Settings
</a></li>
<li><a
href=
"#"
>
Contact
</a></li>
<li
class=
"dropdown"
>
<li
class=
"dropdown"
data-dropdown
>
<a
href=
"#"
class=
"dropdown-toggle"
>
Dropdown
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#"
>
Secondary link
</a></li>
...
...
docs/javascript.html
View file @
200f5817
This diff is collapsed.
Click to expand it.
js/bootstrap-alerts.js
View file @
200f5817
...
...
@@ -51,30 +51,25 @@
/* ALERT CLASS DEFINITION
* ====================== */
var
Alert
=
function
(
content
)
{
var
that
=
this
var
Alert
=
function
(
content
,
selector
)
{
this
.
$element
=
$
(
content
)
.
bind
(
'
alert:hide
'
,
$
.
proxy
(
this
.
close
,
this
))
.
delegate
(
'
.close
'
,
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
that
.
close
()
})
.
delegate
(
selector
||
'
.close
'
,
'
click
'
,
this
.
close
)
}
Alert
.
prototype
=
{
close
:
function
()
{
var
that
=
this
close
:
function
(
e
)
{
var
$element
=
$
(
this
).
parent
(
'
.alert-message
'
)
this
.
$element
.
removeClass
(
'
in
'
)
e
&&
e
.
preventDefault
()
$element
.
removeClass
(
'
in
'
)
function
removeElement
()
{
that
.
$element
.
remove
()
that
.
$element
=
null
$element
.
remove
()
}
$
.
support
.
transition
&&
this
.
$element
.
hasClass
(
'
fade
'
)
?
this
.
$element
.
bind
(
transitionEnd
,
removeElement
)
:
$
.
support
.
transition
&&
$element
.
hasClass
(
'
fade
'
)
?
$element
.
bind
(
transitionEnd
,
removeElement
)
:
removeElement
()
}
...
...
@@ -85,9 +80,25 @@
* ======================= */
$
.
fn
.
alert
=
function
(
options
)
{
if
(
options
===
true
)
{
return
this
.
data
(
'
alert
'
)
}
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
)
\ No newline at end of file
js/bootstrap-popover.js
View file @
200f5817
...
...
@@ -24,6 +24,7 @@
this
.
$element
=
$
(
element
)
this
.
options
=
options
this
.
enabled
=
true
this
.
fixTitle
()
}
/* NOTE: POPOVER EXTENDS BOOTSTRAP-TWIPSY.js
...
...
@@ -38,22 +39,13 @@
$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
'
)
{
content
=
this
.
$element
.
attr
(
'
data-content
'
)
||
this
.
options
.
content
content
=
$e
.
attr
(
o
.
content
)
}
else
if
(
typeof
this
.
options
.
content
==
'
function
'
)
{
content
=
this
.
options
.
content
.
call
(
this
.
$element
[
0
])
}
...
...
@@ -80,6 +72,6 @@
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
)
\ No newline at end of file
js/bootstrap-twipsy.js
View file @
200f5817
...
...
@@ -282,9 +282,6 @@
this
[
binder
](
eventIn
,
enter
)[
binder
](
eventOut
,
leave
)
}
this
.
bind
(
name
+
'
:show
'
,
enter
)
this
.
bind
(
name
+
'
:hide
'
,
leave
)
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