mirror of
https://github.com/friendica/friendica
synced 2024-12-23 06:00:15 +00:00
unpause the stream when posting a comment or liking/disliking
This commit is contained in:
parent
f3c91edd95
commit
237b4c74c2
1 changed files with 11 additions and 5 deletions
16
js/main.js
16
js/main.js
|
@ -158,14 +158,11 @@
|
||||||
}
|
}
|
||||||
$('#pause').html('<img src="images/pause.gif" alt="pause" style="border: 1px solid black;" />');
|
$('#pause').html('<img src="images/pause.gif" alt="pause" style="border: 1px solid black;" />');
|
||||||
} else {
|
} else {
|
||||||
stopped = false;
|
unpause();
|
||||||
totStopped = false;
|
|
||||||
$('#pause').html('');
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!totStopped) {
|
if (!totStopped) {
|
||||||
stopped = false;
|
unpause();
|
||||||
$('#pause').html('');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -302,6 +299,7 @@
|
||||||
// is delayed and NavUpdate runs before it completes.
|
// is delayed and NavUpdate runs before it completes.
|
||||||
|
|
||||||
function dolike(ident,verb) {
|
function dolike(ident,verb) {
|
||||||
|
unpause();
|
||||||
$('#like-rotator-' + ident.toString()).show();
|
$('#like-rotator-' + ident.toString()).show();
|
||||||
$.get('like/' + ident.toString() + '?verb=' + verb );
|
$.get('like/' + ident.toString() + '?verb=' + verb );
|
||||||
if(timer) clearTimeout(timer);
|
if(timer) clearTimeout(timer);
|
||||||
|
@ -374,6 +372,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function post_comment(id) {
|
function post_comment(id) {
|
||||||
|
unpause();
|
||||||
commentBusy = true;
|
commentBusy = true;
|
||||||
$('body').css('cursor', 'wait');
|
$('body').css('cursor', 'wait');
|
||||||
$.post(
|
$.post(
|
||||||
|
@ -398,6 +397,13 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function unpause() {
|
||||||
|
// unpause auto reloads if they are currently stopped
|
||||||
|
totStopped = false;
|
||||||
|
stopped = false;
|
||||||
|
$('#pause').html('');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function bin2hex(s){
|
function bin2hex(s){
|
||||||
// Converts the binary representation of data to hex
|
// Converts the binary representation of data to hex
|
||||||
|
|
Loading…
Reference in a new issue