From: Benjamin Auder Date: Sun, 18 Feb 2018 14:33:50 +0000 (+0100) Subject: 'update' X-Git-Url: https://git.auder.net/doc/html/index.html?a=commitdiff_plain;h=45e056cf185d39a31b07dae6e9d6623b1fb95383;p=qomet.git 'update' --- diff --git a/public/javascripts/evaluation.js b/public/javascripts/evaluation.js index 565794f..49ba6e5 100644 --- a/public/javascripts/evaluation.js +++ b/public/javascripts/evaluation.js @@ -55,9 +55,8 @@ new Vue({ if (evaluation.mode == "watch") { window.addEventListener("focus", () => { - if (this.stage != 2) - return; - socket.emit(message.studentFocus, {number:this.student.number}); + if (this.stage == 2) + socket.emit(message.studentFocus, {number:this.student.number}); }, false); } window.addEventListener("resize", e => {