Cleaning up some superfluous toasts
This commit is contained in:
parent
200de72a85
commit
258c0c82df
|
|
@ -138,7 +138,6 @@ function updatePathNavigator() {
|
|||
* @param {string} path - The path of the folder to open.
|
||||
*/
|
||||
function changeFolder(name, path) {
|
||||
toastr.success("If this is the first time it may take a while to generate thumbnails.", "Opening folder \"" + name + "\"");
|
||||
$.ajax({
|
||||
url : 'ajax/setpath.php',
|
||||
data : {path: path},
|
||||
|
|
@ -228,12 +227,11 @@ function showComic(comic, name) {
|
|||
redirectToLogin();
|
||||
return;
|
||||
}
|
||||
if ( data.images.length == 0 ) {
|
||||
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;
|
||||
}
|
||||
toastr.remove();
|
||||
lightbox = SimpleLightbox.open({
|
||||
items: data.images,
|
||||
captions: data.captions,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user