fix finalmodus toggle bug
This commit is contained in:
parent
2fa4648f8a
commit
5d8784d62e
@ -153,6 +153,7 @@ function setFinalMode(status){
|
|||||||
$(".finalElement").attr("disabled", !isFinalMode);
|
$(".finalElement").attr("disabled", !isFinalMode);
|
||||||
var index = $("#questionsSelcet>option:selected").index();
|
var index = $("#questionsSelcet>option:selected").index();
|
||||||
index = index > 0 ? index : 0;
|
index = index > 0 ? index : 0;
|
||||||
|
$("#answers").empty();
|
||||||
loadQuestionToGui(index);
|
loadQuestionToGui(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,7 +281,7 @@ function loadQuestionToGui(index) {
|
|||||||
$("#schweinchenImg").hide();
|
$("#schweinchenImg").hide();
|
||||||
$("#schweinchen1Img").hide();
|
$("#schweinchen1Img").hide();
|
||||||
$("#schweinchen2Img").hide();
|
$("#schweinchen2Img").hide();
|
||||||
if (!(player2 && display)) {
|
if (!display) {
|
||||||
$("#answers").empty();
|
$("#answers").empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user