Commit 6c1716ce authored by Jean-Romain Prévost's avatar Jean-Romain Prévost Committed by Felix Paul Kühne
Browse files

Fix js error in upload animation


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 446518fa
......@@ -30,11 +30,12 @@ $(function(){
});
var xhrCache = [];
var xhrNb = 0;
function add (e, data) {
$('.message').hide();
var xhr = data.submit();
$.each(data.files, function(index, file){
file._ID = xhrCache.length;
file._ID = xhrNb++;
xhrCache[file._ID] = xhr;
var hasProgressbar = ('FormData' in window);
var html = '<li data-file-id="' + file._ID + '">';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment