]> git.mxchange.org Git - friendica.git/commitdiff
unpause the stream when posting a comment or liking/disliking
authorzottel <github@zottel.net>
Tue, 6 Dec 2011 09:22:59 +0000 (01:22 -0800)
committerzottel <github@zottel.net>
Tue, 6 Dec 2011 09:22:59 +0000 (01:22 -0800)
js/main.js

index 2b486bedad73d7d978fd6618bfbe9fc858b9ab86..829af2258f03bae1591be2f09f431e48f9664534 100644 (file)
                                        }
                                        $('#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();
                                }
                        }
                });
        // 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);
        }
 
        function post_comment(id) {
+               unpause();
                commentBusy = true;
                $('body').css('cursor', 'wait');
                $.post(  
          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