Enhanced space handling - thx fmms
This commit is contained in:
parent
7a7d2a06b3
commit
21bffbfb69
|
@ -256,7 +256,7 @@ $(document).ready(function() {
|
||||||
uploadtext.text(t('files', '1 file uploading'));
|
uploadtext.text(t('files', '1 file uploading'));
|
||||||
uploadtext.show();
|
uploadtext.show();
|
||||||
} else {
|
} else {
|
||||||
uploadtext.text(currentUploads + t('files', ' files uploading'));
|
uploadtext.text(currentUploads + ' ' + t('files', 'files uploading'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -301,7 +301,7 @@ $(document).ready(function() {
|
||||||
uploadtext.text('');
|
uploadtext.text('');
|
||||||
uploadtext.hide();
|
uploadtext.hide();
|
||||||
} else {
|
} else {
|
||||||
uploadtext.text(currentUploads + t('files', ' files uploading'));
|
uploadtext.text(currentUploads + ' ' + t('files', 'files uploading'));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.error(function(jqXHR, textStatus, errorThrown) {
|
.error(function(jqXHR, textStatus, errorThrown) {
|
||||||
|
@ -316,7 +316,7 @@ $(document).ready(function() {
|
||||||
uploadtext.text('');
|
uploadtext.text('');
|
||||||
uploadtext.hide();
|
uploadtext.hide();
|
||||||
} else {
|
} else {
|
||||||
uploadtext.text(currentUploads + t('files', ' files uploading'));
|
uploadtext.text(currentUploads + ' ' + t('files', 'files uploading'));
|
||||||
}
|
}
|
||||||
$('#notification').hide();
|
$('#notification').hide();
|
||||||
$('#notification').text(t('files', 'Upload cancelled.'));
|
$('#notification').text(t('files', 'Upload cancelled.'));
|
||||||
|
@ -663,7 +663,7 @@ function scanFiles(force,dir){
|
||||||
var scannerEventSource=new OC.EventSource(OC.filePath('files','ajax','scan.php'),{force:force,dir:dir});
|
var scannerEventSource=new OC.EventSource(OC.filePath('files','ajax','scan.php'),{force:force,dir:dir});
|
||||||
scanFiles.cancel=scannerEventSource.close.bind(scannerEventSource);
|
scanFiles.cancel=scannerEventSource.close.bind(scannerEventSource);
|
||||||
scannerEventSource.listen('scanning',function(data){
|
scannerEventSource.listen('scanning',function(data){
|
||||||
$('#scan-count').text(data.count+t('files',' files scanned'));
|
$('#scan-count').text(data.count + ' ' + t('files', 'files scanned'));
|
||||||
$('#scan-current').text(data.file+'/');
|
$('#scan-current').text(data.file+'/');
|
||||||
});
|
});
|
||||||
scannerEventSource.listen('success',function(success){
|
scannerEventSource.listen('success',function(success){
|
||||||
|
|
Loading…
Reference in New Issue