From 5d8784d62e8aec280a6efc0ce8f24417138db47a Mon Sep 17 00:00:00 2001 From: rofl256 Date: Mon, 25 Sep 2017 05:20:52 +0200 Subject: [PATCH] fix finalmodus toggle bug --- web/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/js/main.js b/web/js/main.js index 092038c..2106d48 100644 --- a/web/js/main.js +++ b/web/js/main.js @@ -153,6 +153,7 @@ function setFinalMode(status){ $(".finalElement").attr("disabled", !isFinalMode); var index = $("#questionsSelcet>option:selected").index(); index = index > 0 ? index : 0; + $("#answers").empty(); loadQuestionToGui(index); } @@ -280,7 +281,7 @@ function loadQuestionToGui(index) { $("#schweinchenImg").hide(); $("#schweinchen1Img").hide(); $("#schweinchen2Img").hide(); - if (!(player2 && display)) { + if (!display) { $("#answers").empty(); }