summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-19 09:47:51 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-19 09:47:51 +0200
commitf7800cd63ef55b9fc0e8379291adeb9e45356fb1 (patch)
treee2ca2d501d48db4654a527a3f00bdae7b3feaa47
parent72d53008cc848f7bdaf55183d6e4be75c8bfae53 (diff)
downloadnextcloud-server-f7800cd63ef55b9fc0e8379291adeb9e45356fb1.tar.gz
nextcloud-server-f7800cd63ef55b9fc0e8379291adeb9e45356fb1.zip
fix 'event is not defined' error
-rw-r--r--core/js/oc-dialogs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index ddd3cb4ac78..7ca94dcbaa4 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -238,7 +238,7 @@ var OCdialogs = {
if (window.FileReader && type === 'image') {
var reader = new FileReader();
reader.onload = function (e) {
- var blob = new Blob([event.target.result]);
+ var blob = new Blob([e.target.result]);
window.URL = window.URL || window.webkitURL;
var originalUrl = window.URL.createObjectURL(blob);
var image = new Image();