]> git.mxchange.org Git - friendica.git/commitdiff
[frio] Keep jQuery data attached to elements stored in jotcache
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 10 Oct 2020 22:42:18 +0000 (18:42 -0400)
committerHypolite 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

index 96b47d405ba932c139f2cca7b59d24f21320fdea..a088b08e349efe5bab8247570c8a585e536ad196 100644 (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.