diff options
author | friendica <info@friendika.com> | 2011-12-06 12:23:43 -0800 |
---|---|---|
committer | friendica <info@friendika.com> | 2011-12-06 12:23:43 -0800 |
commit | f6f151433c7ecdbfc1bf443880eb63841c61eb7e (patch) | |
tree | 62bf72c28056ee5ecb4fd29f8ac7bee13bcbd182 | |
parent | 06b904ffcbc5dd87c729850d5e4cb63f5ad384a7 (diff) | |
parent | 237b4c74c2e0de925795907cbc3e776298f2f068 (diff) | |
download | volse-hubzilla-f6f151433c7ecdbfc1bf443880eb63841c61eb7e.tar.gz volse-hubzilla-f6f151433c7ecdbfc1bf443880eb63841c61eb7e.tar.bz2 volse-hubzilla-f6f151433c7ecdbfc1bf443880eb63841c61eb7e.zip |
Merge pull request #16 from zzottel/master
Unpause the stream when posting a comment or liking/disliking
-rw-r--r-- | js/main.js | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/js/main.js b/js/main.js index 2b486beda..829af2258 100644 --- a/js/main.js +++ b/js/main.js @@ -158,14 +158,11 @@ } $('#pause').html('<img src="images/pause.gif" alt="pause" style="border: 1px solid black;" />'); } else { - stopped = false; - totStopped = false; - $('#pause').html(''); + unpause(); } } else { if (!totStopped) { - stopped = false; - $('#pause').html(''); + unpause(); } } }); @@ -302,6 +299,7 @@ // is delayed and NavUpdate runs before it completes. function dolike(ident,verb) { + unpause(); $('#like-rotator-' + ident.toString()).show(); $.get('like/' + ident.toString() + '?verb=' + verb ); if(timer) clearTimeout(timer); @@ -374,6 +372,7 @@ } function post_comment(id) { + unpause(); commentBusy = true; $('body').css('cursor', 'wait'); $.post( @@ -398,6 +397,13 @@ return false; } + function unpause() { + // unpause auto reloads if they are currently stopped + totStopped = false; + stopped = false; + $('#pause').html(''); + } + function bin2hex(s){ // Converts the binary representation of data to hex |