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
c8874ff2
Commit
c8874ff2
authored
Feb 06, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6813 from Yohn/patch-12
don't remove title attribute for tooltips for 2.3-wip
parents
2fa77bf1
60c9ff43
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 @
c8874ff2
...
...
@@ -245,7 +245,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 @
c8874ff2
...
...
@@ -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