From 7c1e99bb1bc6c2a89bc42fb9c295933f38ac9e0c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 6 Feb 2015 14:16:20 -0500 Subject: pull in clipboard paste function --- js/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/app.js') diff --git a/js/app.js b/js/app.js index a9f7bb7..e9ed28f 100644 --- a/js/app.js +++ b/js/app.js @@ -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." } } -- cgit v1.2.3-70-g09d2