Skip to content

Commit 1be2605

Browse files
author
Martii
committed
Change event capture for reply box and reminders
* If a tab doesn't have focus don't bother doing anything for these e.g. multiple tabs opened don't start the timer and don't pop up the reply box a.k.a not concurrent op but user event driven
1 parent 673278e commit 1be2605

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

views/includes/scripts/commentReplyScript.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
var handler = fireIfElementVisible($('#show-reply-form-when-visible'), callback);
7474

7575
// jQuery
76-
$(window).on('DOMContentLoaded load resize scroll', handler);
76+
$(window).on('focus resize scroll', handler);
7777

7878
})();
7979
</script>

views/includes/scripts/hideReminders.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
var handler = fireIfElementVisible($('.reminders'), callback);
4040

41-
$(window).on('DOMContentLoaded load resize scroll', handler);
41+
$(window).on('focus resize scroll', handler);
4242

4343
})();
4444
</script>

0 commit comments

Comments
 (0)