From afbf7d2707cd772258e6faca549f55f32377e6a9 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 7 Jul 2015 16:12:21 -0400 Subject: fix slash --- js/tool.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'js/tool.js') diff --git a/js/tool.js b/js/tool.js index 3e09c1d..9404b1c 100644 --- a/js/tool.js +++ b/js/tool.js @@ -25,8 +25,9 @@ var Tool = Model({ var Checkbox = Tool.extend({ init: function (span){ this.__init(span) - var state = this.name[0] == "x" - this.name = this.name.replace(/^[x_] /,"") + var name = this.name.replace(/^[x_] /,"") + var state = localStorage.getItem("ascii." + name) || this.name[0] == "x" + this.name = name this.update(state) }, update: function(state){ -- cgit v1.2.3-70-g09d2