add loading screen while preparing files for upload

This commit is contained in:
j 2019-07-23 11:36:31 +02:00
parent a786f5d9bc
commit daed8b816c

View file

@ -8,6 +8,11 @@ pandora.ui.addFilesDialog = function(options) {
}).bindEvent({ }).bindEvent({
click: function() { click: function() {
$button.options({disabled: true}); $button.options({disabled: true});
that.disableCloseButton()
var $screen = Ox.LoadingScreen({
size: 16
});
that.options({content: $screen.start()});
(options.action == 'upload' ? uploadVideos : importVideos)(function() { (options.action == 'upload' ? uploadVideos : importVideos)(function() {
that.close(); that.close();
pandora.ui.tasksDialog({ pandora.ui.tasksDialog({