From: Hypolite Petovan Date: Sat, 10 Oct 2020 22:42:18 +0000 (-0400) Subject: [frio] Keep jQuery data attached to elements stored in jotcache X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=85677266b9d70f846afde68e6693dd431ccb540e;p=friendica.git [frio] Keep jQuery data attached to elements stored in jotcache - Prevents tagsinput to re-attach to existing tags inputs when jotcache is restored --- diff --git a/view/theme/frio/js/modal.js b/view/theme/frio/js/modal.js index 96b47d405b..a088b08e34 100644 --- 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.