diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-10-03 09:39:41 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-10-03 09:39:41 +0200 |
commit | 209958a58434ba7740f762ed2026e04254edbf9c (patch) | |
tree | 439a85ede8e31c368ea01b9494b43fe6f5e0479a | |
parent | 4d5580ab7781eea81dc4cb3d67b7376f49357bef (diff) | |
download | volse-hubzilla-209958a58434ba7740f762ed2026e04254edbf9c.tar.gz volse-hubzilla-209958a58434ba7740f762ed2026e04254edbf9c.tar.bz2 volse-hubzilla-209958a58434ba7740f762ed2026e04254edbf9c.zip |
move call to ping before call to update_*
-rw-r--r-- | js/main.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/js/main.js b/js/main.js index e0694e47f..430f216d1 100644 --- a/js/main.js +++ b/js/main.js @@ -164,6 +164,15 @@ }); function NavUpdate() { + if(! stopped) { + $.get("ping",function(data) { + $(data).find('result').each(function() { + // send nav-update event + $('nav').trigger('nav-update', this); + }); + }) ; + } + if($('#live-network').length) { src = 'network'; liveUpdate(); } if($('#live-profile').length) { src = 'profile'; liveUpdate(); } @@ -182,14 +191,6 @@ } } - if(! stopped) { - $.get("ping",function(data) { - $(data).find('result').each(function() { - // send nav-update event - $('nav').trigger('nav-update', this); - }); - }) ; - } timer = setTimeout(NavUpdate,30000); } |