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
d09b46fe
Commit
d09b46fe
authored
Dec 22, 2012
by
fat-kun
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6349 from Yohn/patch-6
Fixes #5753 with tooltip('toogle')
parents
effba9e5
a6705246
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
js/bootstrap-tooltip.js
js/bootstrap-tooltip.js
+3
-3
js/tests/unit/bootstrap-tooltip.js
js/tests/unit/bootstrap-tooltip.js
+9
-1
No files found.
js/bootstrap-tooltip.js
View file @
d09b46fe
...
@@ -242,8 +242,8 @@
...
@@ -242,8 +242,8 @@
}
}
,
toggle
:
function
(
e
)
{
,
toggle
:
function
(
e
)
{
var
self
=
$
(
e
.
currentTarget
)[
this
.
type
](
this
.
_options
).
data
(
this
.
type
)
var
self
=
e
?
$
(
e
.
currentTarget
)[
this
.
type
](
this
.
_options
).
data
(
this
.
type
)
:
this
self
[
self
.
tip
().
hasClass
(
'
in
'
)
?
'
hide
'
:
'
show
'
]
()
self
.
tip
().
hasClass
(
'
in
'
)
?
self
.
hide
()
:
self
.
show
()
}
}
,
destroy
:
function
()
{
,
destroy
:
function
()
{
...
...
js/tests/unit/bootstrap-tooltip.js
View file @
d09b46fe
...
@@ -156,4 +156,12 @@ $(function () {
...
@@ -156,4 +156,12 @@ $(function () {
div
.
find
(
'
a
'
).
trigger
(
'
click
'
)
div
.
find
(
'
a
'
).
trigger
(
'
click
'
)
ok
(
$
(
"
.tooltip
"
).
is
(
'
.fade.in
'
),
'
tooltip is faded in
'
)
ok
(
$
(
"
.tooltip
"
).
is
(
'
.fade.in
'
),
'
tooltip is faded in
'
)
})
})
test
(
"
should show tooltip when toggle is called
"
,
function
()
{
var
tooltip
=
$
(
'
<a href="#" rel="tooltip" title="tooltip on toggle"></a>
'
)
.
appendTo
(
'
#qunit-fixture
'
)
.
tooltip
({
trigger
:
'
manual
'
})
.
tooltip
(
'
toggle
'
)
ok
(
$
(
"
.tooltip
"
).
is
(
'
.fade.in
'
),
'
tooltip should be toggled in
'
)
})
})
})
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