$(document).ready(function () {
var eventSource, total, bar = $('#progressbar');
console.log('start');
bar.progressbar({value: 0});
eventSource = new OC.EventSource(OC.filePath('files', 'ajax', 'upgrade.php'));
eventSource.listen('total', function (count) {
total = count;
console.log(count + ' files needed to be migrated');
});
eventSource.listen('count', function (count) {
bar.progressbar({value: (count / total) * 100});
console.log(count);
});
eventSource.listen('done', function () {
document.location.reload();
});
});
'/nextcloud-server.git/'>nextcloud-server.git
|
Nextcloud server, a safe home for all your data: https://github.com/nextcloud/server | www-data |
blob: 271cb44435be699826f4755434fea4f92dde34d2 (
plain)