X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fvariant.js;fp=public%2Fjavascripts%2Fvariant.js;h=f9fb0c62dd5aa3796de21b34ec687c6a2c3caa16;hb=e6dcb115eab52abefa1d54a65af546cf5a0153e9;hp=03dbbdd397881a3057bdb9a537e653eb8345d1c0;hpb=9a3c9f790aa28fd4708faefe41b4624173922c8e;p=vchess.git diff --git a/public/javascripts/variant.js b/public/javascripts/variant.js index 03dbbdd3..f9fb0c62 100644 --- a/public/javascripts/variant.js +++ b/public/javascripts/variant.js @@ -5,12 +5,13 @@ new Vue({ problem: undefined, //current problem in view }, methods: { - toggleDisplay: function(elt) { - this.display = elt; //show - }, showProblem: function(problemTxt) { this.problem = JSON.parse(problemTxt); this.display = "game"; }, + setDisplay: function(elt) { + this.display = elt; + document.getElementById("drawer-control").checked = false; + }, }, });