aboutsummaryrefslogtreecommitdiffstats
path: root/view/head.tpl
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-20 05:21:19 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-20 05:21:19 -0700
commit466267fbb5b5cc466196e40b6a8fe96f25c57e2f (patch)
tree8fc00033648bd7716fdeac8eaddca054b2fbf1be /view/head.tpl
parentba8da761e669b22e16e1075e0e1e79d8b458af3e (diff)
downloadvolse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.tar.gz
volse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.tar.bz2
volse-hubzilla-466267fbb5b5cc466196e40b6a8fe96f25c57e2f.zip
lotsoflittlestuff
Diffstat (limited to 'view/head.tpl')
-rw-r--r--view/head.tpl16
1 files changed, 13 insertions, 3 deletions
diff --git a/view/head.tpl b/view/head.tpl
index b384d6fc0..6be3f7940 100644
--- a/view/head.tpl
+++ b/view/head.tpl
@@ -9,7 +9,7 @@
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
<script type="text/javascript">
-// $(document).ready(function() { setTimeout(NavUpdate,10 * 1000); });
+ $(document).ready(function() { NavUpdate(); });
function NavUpdate()
{
@@ -17,10 +17,20 @@ function NavUpdate()
{
$(data).find('result').each(function() {
var net = $(this).find('net').text();
- alert(net);
+ if(net == 0) { net = ''; }
+ $('#net-update').html(net);
+ var home = $(this).find('home').text();
+ if(home == 0) { home = ''; }
+ $('#home-update').html(home);
+ var mail = $(this).find('mail').text();
+ if(mail == 0) { mail = ''; }
+ $('#mail-update').html(mail);
+ var intro = $(this).find('intro').text();
+ if(intro == 0) { intro = ''; }
+ $('#notify-update').html(intro);
});
}) ;
- setTimeout(NavUpdate,10 * 1000);
+ setTimeout(NavUpdate,30000);
}
</script>