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
519a087d
Commit
519a087d
authored
10 years ago
by
Chris Hynes
Browse files
Options
Download
Email Patches
Plain Diff
Remove popover content with .children().detach() instead of .empty() so it can be reused
parent
f023ddc6
5 merge requests
!28721
Hot test
,
!14244
Remove popover content with .children().detach() instead of .empty()
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/popover.js
+2
-1
js/popover.js
with
2 additions
and
1 deletion
+2
-1
js/popover.js
+
2
-
1
View file @
519a087d
...
...
@@ -46,7 +46,8 @@
var
content
=
this
.
getContent
()
$tip
.
find
(
'
.popover-title
'
)[
this
.
options
.
html
?
'
html
'
:
'
text
'
](
title
)
$tip
.
find
(
'
.popover-content
'
).
empty
()[
// we use append for html objects to maintain js events
$tip
.
find
(
'
.popover-content
'
).
children
().
detach
()
$tip
.
find
(
'
.popover-content
'
)[
// we use append for html objects to maintain js events
this
.
options
.
html
?
(
typeof
content
==
'
string
'
?
'
html
'
:
'
append
'
)
:
'
text
'
](
content
)
...
...
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