Compare commits

..

2 Commits

View File

@ -138,7 +138,6 @@ function updatePathNavigator() {
* @param {string} path - The path of the folder to open. * @param {string} path - The path of the folder to open.
*/ */
function changeFolder(name, path) { function changeFolder(name, path) {
toastr.success("If this is the first time it may take a while to generate thumbnails.", "Opening folder \"" + name + "\"");
$.ajax({ $.ajax({
url : 'ajax/setpath.php', url : 'ajax/setpath.php',
data : {path: path}, data : {path: path},
@ -228,6 +227,11 @@ function showComic(comic, name) {
redirectToLogin(); redirectToLogin();
return; return;
} }
toastr.remove();
if ( data.images.length == 0 ) {
toastr.error("There doesn't seem to be any images in this comic. Please contact the admin!", "Comics is empty", {timeOut: 8000});
return;
}
lightbox = SimpleLightbox.open({ lightbox = SimpleLightbox.open({
items: data.images, items: data.images,
captions: data.captions, captions: data.captions,