projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6968c73
)
[frio] Keep jQuery data attached to elements stored in jotcache
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 10 Oct 2020 22:42:18 +0000
(18:42 -0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 10 Oct 2020 23:04:25 +0000
(19:04 -0400)
- Prevents tagsinput to re-attach to existing tags inputs when jotcache is restored
view/theme/frio/js/modal.js
patch
|
blob
|
history
diff --git
a/view/theme/frio/js/modal.js
b/view/theme/frio/js/modal.js
index 96b47d405ba932c139f2cca7b59d24f21320fdea..a088b08e349efe5bab8247570c8a585e536ad196 100644
(file)
--- a/
view/theme/frio/js/modal.js
+++ b/
view/theme/frio/js/modal.js
@@
-285,7
+285,7
@@
function editpost(url) {
jotcache = $("#jot-content > #jot-sections");
// Remove the original Jot as long as the edit Jot is open.
- jotcache.
remove
();
+ jotcache.
detach
();
// Add the class "edit" to the modal to have some kind of identifier to
// have the possibility to e.g. put special event-listener.