forked from 0x2620/pandora
throttle progress during upload to 1s
This commit is contained in:
parent
a919724821
commit
d42f6646a5
1 changed files with 2 additions and 2 deletions
|
@ -162,10 +162,10 @@ pandora.ui.uploadVideoDialog = function(data) {
|
||||||
uploadStream(item, info, file);
|
uploadStream(item, info, file);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
function(progress) {
|
Ox.throttle(function(progress) {
|
||||||
progress = JSON.parse(progress).progress || 0;
|
progress = JSON.parse(progress).progress || 0;
|
||||||
$progress.options({progress: progress});
|
$progress.options({progress: progress});
|
||||||
}
|
}, 1000)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue