diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-07-07 16:12:21 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-07-07 16:12:21 -0400 |
| commit | afbf7d2707cd772258e6faca549f55f32377e6a9 (patch) | |
| tree | 68f0b57da8b6c9b0f503ef81c1d8cdab04463746 /js/tool.js | |
| parent | 4dc0fac960b835cb9bd9bcc9f4b600a6201e245c (diff) | |
fix slash
Diffstat (limited to 'js/tool.js')
| -rw-r--r-- | js/tool.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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){ |
