X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjs%2Fmain.js;h=7e726248d3fd0f3c939dc7957a407ec4a266cbee;hb=103535d6206e9f2c2260d0554ecc41d31baaf9dd;hp=83086c82b037b4f322bf832b98e233fcde979f18;hpb=3dfb0c2e7cc84dc7e43a975f44e8854b98d043bc;p=friendica.git diff --git a/view/js/main.js b/view/js/main.js index 83086c82b0..7e726248d3 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -485,14 +485,12 @@ function liveUpdate(src) { $('.wall-item-body', data).imagesLoaded(function() { updateConvItems(data); + document.dispatchEvent(new Event('postprocess_liveupdate')); + // Update the scroll position. $(window).scrollTop($(window).scrollTop() + $("section").height() - orgHeight); }); - - callAddonHooks("postprocess_liveupdate"); - }); - } function imgbright(node) { @@ -676,6 +674,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" @@ -742,6 +741,8 @@ function loadScrollContent() { } else { $("#scroll-end").fadeIn('normal'); } + + document.dispatchEvent(new Event('postprocess_liveupdate')); }); }