aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-01-02 23:33:33 -0800
committerzotlabs <mike@macgirvin.com>2019-01-02 23:33:33 -0800
commit8ac541e634838eb83e918f9c04cc0993602c473e (patch)
treecca0b1b3bc1783c2e3708b0f2b72ecf60110e1ef /view/js/main.js
parentf660530ef5cce1fab2e7c16daad2239524cb5aac (diff)
downloadvolse-hubzilla-8ac541e634838eb83e918f9c04cc0993602c473e.tar.gz
volse-hubzilla-8ac541e634838eb83e918f9c04cc0993602c473e.tar.bz2
volse-hubzilla-8ac541e634838eb83e918f9c04cc0993602c473e.zip
better handling of notification updates while commenting
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 0169ee54c..dcd04f053 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -888,7 +888,12 @@ function liveUpdate(notify_id) {
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) {
clearTimeout(livetime);
}