Skip to content

Commit

Permalink
Upgrade to release v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Dec 16, 2014
1 parent 339fc14 commit 327fd47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@
$content.remove();
resetProgress();
});
}, 500);
}, 100);
},
error: function(jqXHR, textStatus, errorThrown) {
self.showError(errorThrown, null, $el.attr('id'), key, 'filedeleteerror');
Expand Down Expand Up @@ -886,7 +886,7 @@
}
updateProgress();
resetActions();
}, 500);
}, 100);
},
error: function(jqXHR, textStatus, errorThrown) {
setIndicator('indicatorError', 'indicatorErrorTitle');
Expand Down Expand Up @@ -1183,7 +1183,7 @@
}
if (!self.showPreview) {
$el.trigger('fileloaded', [file, previewId, i]);
setTimeout(readFile(i + 1), 500);
setTimeout(readFile(i + 1), 100);
return;
}
if ($preview.length > 0 && typeof FileReader !== "undefined") {
Expand All @@ -1203,11 +1203,11 @@
setTimeout(function () {
$status.html(msg);
vUrl.revokeObjectURL(previewData);
}, 500);
}, 100);
setTimeout(function () {
readFile(i + 1);
self.updateFileDetails(numFiles);
}, 500);
}, 100);
$el.trigger('fileloaded', [file, previewId, i]);
};
reader.onprogress = function (data) {
Expand All @@ -1218,7 +1218,7 @@
.replace(/\{percent\}/g, progress).replace(/\{name\}/g, caption);
setTimeout(function () {
$status.html(msg);
}, 500);
}, 100);
}
};
if (isText(file.type, caption)) {
Expand All @@ -1231,7 +1231,7 @@
setTimeout(function() {
readFile(i + 1);
self.updateFileDetails(numFiles);
}, 500);
}, 100);
$el.trigger('fileloaded', [file, previewId, i]);
}
self.filestack.push(file);
Expand Down
Loading

0 comments on commit 327fd47

Please sign in to comment.