diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-20 19:34:44 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-20 19:34:44 -0700 |
commit | 3ad52463f633b060bee519e8aa4d6e9453fdc2aa (patch) | |
tree | 5235655b2dd2e9a2af5f1179ebbff20dfdbd05b6 /include/main.js | |
parent | 177a6d7f79f5e237eb6d0811e8e28732a4c90d03 (diff) | |
download | volse-hubzilla-3ad52463f633b060bee519e8aa4d6e9453fdc2aa.tar.gz volse-hubzilla-3ad52463f633b060bee519e8aa4d6e9453fdc2aa.tar.bz2 volse-hubzilla-3ad52463f633b060bee519e8aa4d6e9453fdc2aa.zip |
more robust feed error handling, at the expense of performance.
Pass profile owner through HTML (yuk) to the ajax updater - as
browser pre-fetch totally buggers passing it via the server session.
Diffstat (limited to 'include/main.js')
-rw-r--r-- | include/main.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/main.js b/include/main.js index 645170b41..1ddab0dc2 100644 --- a/include/main.js +++ b/include/main.js @@ -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) { |