From be506d00471b655c30429d133053d594c48d71e3 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 16 Feb 2014 03:20:54 +0100 Subject: bugfix: form displayes not the latest file from localStorage --- js/cctv-control.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/cctv-control.js b/js/cctv-control.js index 4732b30..f4dc88a 100644 --- a/js/cctv-control.js +++ b/js/cctv-control.js @@ -117,7 +117,10 @@ function saveImage() { }; fileReader.readAsDataURL(blob); - showForm(); + + fileReader.onloadend = function() { + showForm(); + } } }, false); -- cgit v1.2.1