aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-12 04:06:14 -0800
committerfriendica <info@friendica.com>2011-11-12 04:06:14 -0800
commitab6bf767df4a06494b314f7d0c3928a795b81bae (patch)
treea9e2a68d109be3d68e745af1beb5882d187dd5e2 /js
parentd23867f5a0564d680680e4bae3691bdecdcc183f (diff)
parente853549bc8a2d37b1be813396d7adb217cbda921 (diff)
downloadvolse-hubzilla-ab6bf767df4a06494b314f7d0c3928a795b81bae.tar.gz
volse-hubzilla-ab6bf767df4a06494b314f7d0c3928a795b81bae.tar.bz2
volse-hubzilla-ab6bf767df4a06494b314f7d0c3928a795b81bae.zip
Merge pull request #3 from fabrixxm/master
fix for #191 and some other
Diffstat (limited to 'js')
-rw-r--r--js/main.js41
1 files changed, 24 insertions, 17 deletions
diff --git a/js/main.js b/js/main.js
index 15c5b5d1f..9832b2cbc 100644
--- a/js/main.js
+++ b/js/main.js
@@ -168,28 +168,35 @@
function NavUpdate() {
- if($('#live-network').length) { src = 'network'; liveUpdate(); }
- if($('#live-profile').length) { src = 'profile'; liveUpdate(); }
- if($('#live-community').length) { src = 'community'; liveUpdate(); }
- if($('#live-notes').length) { src = 'notes'; liveUpdate(); }
- if($('#live-display').length) {
- if(liking) {
- liking = 0;
- window.location.href=window.location.href
- }
- }
- if($('#live-photos').length) {
- if(liking) {
- liking = 0;
- window.location.href=window.location.href
- }
- }
-
if(! stopped) {
$.get("ping",function(data) {
$(data).find('result').each(function() {
// send nav-update event
$('nav').trigger('nav-update', this);
+
+
+ // start live update
+
+ if($('#live-network').length) { src = 'network'; liveUpdate(); }
+ if($('#live-profile').length) { src = 'profile'; liveUpdate(); }
+ if($('#live-community').length) { src = 'community'; liveUpdate(); }
+ if($('#live-notes').length) { src = 'notes'; liveUpdate(); }
+ if($('#live-display').length) {
+ if(liking) {
+ liking = 0;
+ window.location.href=window.location.href
+ }
+ }
+ if($('#live-photos').length) {
+ if(liking) {
+ liking = 0;
+ window.location.href=window.location.href
+ }
+ }
+
+
+
+
});
}) ;
}