From: Hypolite Petovan Date: Fri, 21 Sep 2018 01:03:23 +0000 (-0400) Subject: Add postprocess_liveupdate JS event dispatch on post preview X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc73aec3baf16ed54b2a8465f16ceb968e2375d1;p=friendica.git Add postprocess_liveupdate JS event dispatch on post preview --- diff --git a/view/js/main.js b/view/js/main.js index ae9cb23d8e..b41750b6a5 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -667,6 +667,7 @@ function preview_post() { if (data.preview) { $("#jot-preview-content").html(data.preview); $("#jot-preview-content" + " a").click(function() {return false;}); + document.dispatchEvent(new Event('postprocess_liveupdate')); } }, "json"