'update'
authorBenjamin Auder <benjamin.auder@somewhere>
Sun, 18 Feb 2018 14:33:50 +0000 (15:33 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sun, 18 Feb 2018 14:33:50 +0000 (15:33 +0100)
public/javascripts/evaluation.js

index 565794f..49ba6e5 100644 (file)
@@ -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 => {