X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fmain.js;h=824f2dfdfcce3843880a2e5a83ee3bc5dfd46a28;hb=75a8b684fcb198f03a4dc2f208395179144f5fe7;hp=abd097e54a07bcfd7442377823039f264b52e8b4;hpb=70cf5ae3c79ad1b94e9d5fab82325d55a12761c0;p=friendica.git diff --git a/include/main.js b/include/main.js index abd097e54a..824f2dfdfc 100644 --- a/include/main.js +++ b/include/main.js @@ -108,7 +108,10 @@ prev = 'live-' + src; in_progress = true; - $.get('update_' + src + '?p=' + profile_uid + '&msie=' + ((msie) ? 1 : 0),function(data) { + var udargs = ((netargs.length) ? '/' + netargs : ''); + var update_url = 'update_' + src + udargs + '?p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); + + $.get(update_url,function(data) { in_progress = false; $('.wall-item-outside-wrapper',data).each(function() { var ident = $(this).attr('id'); @@ -225,6 +228,10 @@ if(timer) clearTimeout(timer); timer = setTimeout(NavUpdate,10); } + if(data.reload) { + window.location.href=data.reload; + } + }, "json" );