mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
oc-89 handling no photos in collection alert
This commit is contained in:
parent
e1a499f65d
commit
456394d3ec
1 changed files with 5 additions and 1 deletions
|
|
@ -44,7 +44,11 @@ function scanForAlbums() {
|
|||
|
||||
if (r.status == 'success') {
|
||||
totalAlbums = r.paths.length;
|
||||
$('#notification').text(t('gallery',"Creating thumbnails")+' ... ' + Math.floor((albumCounter/totalAlbums)*100) + "%");
|
||||
if (totalAlbums == 0) {
|
||||
$('#notification').text(t('gallery', "No photos found")).fadeIn().slideDown().delay(3000).fadeOut().slideUp();
|
||||
return;
|
||||
}
|
||||
$('#notification').text(t('gallery',"Creating thumbnails")+' ... ' + Math.floor((albumCounter/totalAlbums)*100) + "%");
|
||||
for(var a in r.paths) {
|
||||
$.getJSON('ajax/galleryOp.php?operation=partial_create&path='+r.paths[a], function(r) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue