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
ee91afba
Commit
ee91afba
authored
Feb 05, 2013
by
fat-kun
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6481 from pseidemann/patch-1
don't remove title attribute for tooltips
parents
558bc524
c4eea3ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
js/bootstrap-tooltip.js
js/bootstrap-tooltip.js
+1
-1
js/tests/unit/bootstrap-tooltip.js
js/tests/unit/bootstrap-tooltip.js
+2
-2
No files found.
js/bootstrap-tooltip.js
View file @
ee91afba
...
...
@@ -185,7 +185,7 @@
,
fixTitle
:
function
()
{
var
$e
=
this
.
$element
if
(
$e
.
attr
(
'
title
'
)
||
typeof
(
$e
.
attr
(
'
data-original-title
'
))
!=
'
string
'
)
{
$e
.
attr
(
'
data-original-title
'
,
$e
.
attr
(
'
title
'
)
||
''
).
removeAttr
(
'
title
'
)
$e
.
attr
(
'
data-original-title
'
,
$e
.
attr
(
'
title
'
)
||
''
).
attr
(
'
title
'
,
'
'
)
}
}
...
...
js/tests/unit/bootstrap-tooltip.js
View file @
ee91afba
...
...
@@ -22,9 +22,9 @@ $(function () {
ok
(
!!
$
.
fn
.
tooltip
.
defaults
,
'
defaults is defined
'
)
})
test
(
"
should
remove
title attribute
"
,
function
()
{
test
(
"
should
empty
title attribute
"
,
function
()
{
var
tooltip
=
$
(
'
<a href="#" rel="tooltip" title="Another tooltip"></a>
'
).
tooltip
()
ok
(
!
tooltip
.
attr
(
'
title
'
),
'
title tag was remov
ed
'
)
ok
(
tooltip
.
attr
(
'
title
'
)
===
''
,
'
title attribute was empti
ed
'
)
})
test
(
"
should add data attribute for referencing original title
"
,
function
()
{
...
...
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