]> git.mxchange.org Git - friendica.git/blobdiff - include/main.js
more robust feed error handling, at the expense of performance.
[friendica.git] / include / main.js
index 645170b41e8dab29207d852849e73fabd2f84d4a..1ddab0dc2c124a5a79f235fd1e887f35cdaeca44 100644 (file)
@@ -37,6 +37,7 @@
        var msie = false;
        var stopped = false;
        var timer = null;
+       var pr = 0;
 
        $(document).ready(function() {
                $.ajaxSetup({cache: false});
@@ -64,8 +65,8 @@
 
        function NavUpdate() {
 
-               if($('#live-network').length) { src = 'network'; liveUpdate(); }
-               if($('#live-profile').length) { src = 'profile'; liveUpdate(); }
+               if($('#live-network').length) { src = 'network'; pr = $('#live-network').attr('profile'); liveUpdate(); }
+               if($('#live-profile').length) { src = 'profile'; pr = $('#live-profile').attr('profile'); liveUpdate(); }
 
                if(! stopped) {
                        $.get("ping",function(data) {
@@ -97,7 +98,7 @@
                }
                prev = 'live-' + src;
 
-               $.get('update_' + src + '?msie=' + ((msie) ? 1 : 0),function(data) {
+               $.get('update_' + src + '?p=' + pr + '&msie=' + ((msie) ? 1 : 0),function(data) {
                        $('.wall-item-outside-wrapper',data).each(function() {
                                var ident = $(this).attr('id');
                                if($('#' + ident).length == 0) {