Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… support for local image loading.
  • Loading branch information...
commit dfb106da8444bcfb837f53dde0300aea31892c0f 1 parent aa93ed7
Sebastian Tschan blueimp authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 jquery.fileupload-ui.js
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.