Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
1fe4ed88
Commit
1fe4ed88
authored
12 years ago
by
Joseph Price
Browse files
Options
Download
Email Patches
Plain Diff
reordered access of options in tooltip and popover to allow overriding data attrs from js
parent
dbe8aed7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/bootstrap-popover.js
+3
-3
js/bootstrap-popover.js
js/bootstrap-tooltip.js
+1
-1
js/bootstrap-tooltip.js
with
4 additions
and
4 deletions
+4
-4
js/bootstrap-popover.js
+
3
-
3
View file @
1fe4ed88
...
...
@@ -58,8 +58,8 @@
,
$e
=
this
.
$element
,
o
=
this
.
options
content
=
$e
.
attr
(
'
data-
content
'
)
||
(
typeof
o
.
content
==
'
function
'
?
o
.
content
.
call
(
$e
[
0
])
:
o
.
content
)
content
=
(
typeof
o
.
content
==
'
function
'
?
o
.
content
.
call
(
$e
[
0
])
:
o
.
content
)
||
||
$e
.
attr
(
'
data-
content
'
)
return
content
}
...
...
@@ -111,4 +111,4 @@
return
this
}
}(
window
.
jQuery
);
\ No newline at end of file
}(
window
.
jQuery
);
This diff is collapsed.
Click to expand it.
js/bootstrap-tooltip.js
+
1
-
1
View file @
1fe4ed88
...
...
@@ -67,7 +67,7 @@
}
,
getOptions
:
function
(
options
)
{
options
=
$
.
extend
({},
$
.
fn
[
this
.
type
].
defaults
,
options
,
this
.
$element
.
data
())
options
=
$
.
extend
({},
$
.
fn
[
this
.
type
].
defaults
,
this
.
$element
.
data
()
,
options
)
if
(
options
.
delay
&&
typeof
options
.
delay
==
'
number
'
)
{
options
.
delay
=
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets