From 190e2bc21020a6d2a8e7e726b634744bf86f771a Mon Sep 17 00:00:00 2001
From: Roman Sebastian Karwacik <roman.karwacik@rwth-aachen.de>
Date: Fri, 1 May 2020 12:53:02 +0200
Subject: [PATCH] Fix autoreload

---
 templates/lecture.html | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/templates/lecture.html b/templates/lecture.html
index b364956..ec88c3e 100644
--- a/templates/lecture.html
+++ b/templates/lecture.html
@@ -131,8 +131,7 @@ $(function() {
 			})
 
 });
-$(document).ready(function() {
-	$("a.reloadonclose").click(function () {
+$(document).on("click","a.reloadonclose",function () {
 		var popup = window.open(this.href, this.target);
 		if (!popup)
 			return true;
@@ -143,7 +142,9 @@ $(document).ready(function() {
 			};
 		}, 500);
 		return false;
-	});
+});
+
+$(document).ready(function() {
 	$("a.chapterlink").click(function () {
 		videojs('videoplayer').currentTime($(this).data("seek-time"));
 		return false;
-- 
GitLab