diff options
| author | Julie Lala <jules@okfoc.us> | 2015-08-18 08:41:40 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2015-08-18 08:41:40 -0400 |
| commit | 8752354fa9b2b8c03b47b33a75e0ca95e8335d97 (patch) | |
| tree | 8fdf4fee1388ff6a3584efa9a3464134758c0f40 /js/ui/controls.js | |
| parent | be3ee32defb4e0a0b013beed1398b67ced8d13e5 (diff) | |
check if changed before autouploading, hide filetool, other stuff..
Diffstat (limited to 'js/ui/controls.js')
| -rw-r--r-- | js/ui/controls.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/ui/controls.js b/js/ui/controls.js index a21e293..c191cc2 100644 --- a/js/ui/controls.js +++ b/js/ui/controls.js @@ -72,6 +72,7 @@ var controls = (function(){ undo.new() undo.save_rect(0, 0, canvas.w, canvas.h) canvas.erase() + current_filetool && current_filetool.blur() } controls.webcam = new FileTool (webcam_el) @@ -119,9 +120,9 @@ var controls = (function(){ }) controls.save = new ClipboardTool (save_el) controls.save.use = function(){ + changed && clipboard.upload_png() clipboard.show() clipboard.export_mode() - clipboard.upload_png() } controls.load = new ClipboardTool (load_el) controls.load.use = function(){ |
