]> git.mxchange.org Git - friendica.git/blobdiff - js/main.js
Auto update of network page only at top of the page
[friendica.git] / js / main.js
index a4a1c977cab9c799974ab26dfcffa56df0584617..902c19a839bb6831e732ac67dfc34f6208d67641 100644 (file)
 
                in_progress = true;
                var udargs = ((netargs.length) ? '/' + netargs : '');
-               var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0);
+               var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0) + '&top=' + ($(document).scrollTop() != 0 ? '0' : '1');
 
                $.get(update_url,function(data) {
                        in_progress = false;