throttle progress during upload to 1s

This commit is contained in:
j 2015-11-29 14:13:28 +01:00
parent a919724821
commit d42f6646a5

View file

@ -162,10 +162,10 @@ pandora.ui.uploadVideoDialog = function(data) {
uploadStream(item, info, file);
});
},
function(progress) {
Ox.throttle(function(progress) {
progress = JSON.parse(progress).progress || 0;
$progress.options({progress: progress});
}
}, 1000)
);
});
}