]> git.mxchange.org Git - friendica.git/commitdiff
Add postprocess_liveupdate JS event dispatch on post preview
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 21 Sep 2018 01:03:23 +0000 (21:03 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 21 Sep 2018 01:03:23 +0000 (21:03 -0400)
view/js/main.js

index ae9cb23d8e1e41b2c42fa8290a6a22a8778d13a1..b41750b6a56dad16722e51779d32db74ec79857e 100644 (file)
@@ -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"