From 85677266b9d70f846afde68e6693dd431ccb540e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 10 Oct 2020 18:42:18 -0400 Subject: [PATCH] [frio] Keep jQuery data attached to elements stored in jotcache - Prevents tagsinput to re-attach to existing tags inputs when jotcache is restored --- view/theme/frio/js/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.