[frio] Keep jQuery data attached to elements stored in jotcache

- Prevents tagsinput to re-attach to existing tags inputs when jotcache is restored
This commit is contained in:
Hypolite Petovan 2020-10-10 18:42:18 -04:00
parent 6968c73ec7
commit 85677266b9

View file

@ -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.