summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/cctv-control.js5
1 files changed, 4 insertions, 1 deletions
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);