Saving state (unfinished styling on variant page)
[vchess.git] / public / javascripts / variant.js
index 03dbbdd..f9fb0c6 100644 (file)
@@ -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;
+               },
        },
 });