diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-02-06 14:16:20 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-02-06 14:16:20 -0500 |
| commit | 7c1e99bb1bc6c2a89bc42fb9c295933f38ac9e0c (patch) | |
| tree | 14352aa8cd7ac165d19c43644804241d14d483f5 /js/app.js | |
| parent | 92f59149b7982b5a6aad6efd39c648cc8582a900 (diff) | |
pull in clipboard paste function
Diffstat (limited to 'js/app.js')
| -rw-r--r-- | js/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ var drawing = false var erasing = false var selecting = false var filling = false +var changed = false var focused var canvas, tools, palette, controls, brush, mode, current_tool, current_canvas @@ -58,7 +59,7 @@ function bind () { }) window.onbeforeunload = function() { - return "Are you sure you want to navigate away?"; + if (changed) return "You have edited this drawing." } } |
