summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/tool.js2
-rw-r--r--js/ui/controls.js6
-rw-r--r--js/ui/selection.js1
3 files changed, 8 insertions, 1 deletions
diff --git a/js/tool.js b/js/tool.js
index e1c6adb..190f29f 100644
--- a/js/tool.js
+++ b/js/tool.js
@@ -20,5 +20,5 @@ var Tool = Model({
}
})
-var Checkbox = Tool({
+var Checkbox = Tool.extend({
})
diff --git a/js/ui/controls.js b/js/ui/controls.js
index ecaa875..293cd1d 100644
--- a/js/ui/controls.js
+++ b/js/ui/controls.js
@@ -64,6 +64,12 @@ var controls = (function(){
controls.grid.use = function(){
document.body.classList.toggle('grid')
}
+ controls.grid.show = function(){
+ document.body.classList.add('grid')
+ }
+ controls.grid.hide = function(){
+ document.body.classList.remove('grid')
+ }
ClipboardTool = Tool.extend({
blur: function(){
diff --git a/js/ui/selection.js b/js/ui/selection.js
index 6f8f7db..cbd15bf 100644
--- a/js/ui/selection.js
+++ b/js/ui/selection.js
@@ -125,6 +125,7 @@ var selection = (function(){
function show () {
selecting = true
+ controls.grid.show()
}
function hide () {
reset()