Permalink
Browse files

Made the _loadImage method return true/false depending on the browser…

… support for local image loading.
  • Loading branch information...
blueimp committed Sep 15, 2011
1 parent aa93ed7 commit dfb106da8444bcfb837f53dde0300aea31892c0f
Showing with 4 additions and 2 deletions.
  1. +4 −2 jquery.fileupload-ui.js
View
@@ -1,5 +1,5 @@
/*
- * jQuery File Upload User Interface Plugin 5.0.16
+ * jQuery File Upload User Interface Plugin 5.0.17
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
@@ -282,12 +282,14 @@
});
if (url) {
img.prop('src', url);
+ return true;
} else {
- this._loadFile(file, function (url) {
+ return this._loadFile(file, function (url) {
img.prop('src', url);
});
}
}
+ return false;
},
// Link handler, that allows to download files

0 comments on commit dfb106d

Please sign in to comment.