better handling of notification updates while commenting
This commit is contained in:
parent
f660530ef5
commit
8ac541e634
@ -888,7 +888,12 @@ function liveUpdate(notify_id) {
|
|||||||
|
|
||||||
if((src === null) || (stopped) || (! profile_uid)) { $('.like-rotator').hide(); return; }
|
if((src === null) || (stopped) || (! profile_uid)) { $('.like-rotator').hide(); return; }
|
||||||
|
|
||||||
if(in_progress || mediaPlaying) {
|
// if auto updates are enabled and a comment box is open,
|
||||||
|
// prevent live updates until the comment is submitted
|
||||||
|
|
||||||
|
var lockUpdates = (($('.comment-edit-text.expanded').length && (! bParam_static)) ? true : false);
|
||||||
|
|
||||||
|
if(lockUpdates || in_progress || mediaPlaying) {
|
||||||
if(livetime) {
|
if(livetime) {
|
||||||
clearTimeout(livetime);
|
clearTimeout(livetime);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user