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.
|
* @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,12 +227,11 @@ function showComic(comic, name) {
|
||||||
redirectToLogin();
|
redirectToLogin();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
toastr.remove();
|
||||||
if ( data.images.length == 0 ) {
|
if ( data.images.length == 0 ) {
|
||||||
toastr.remove();
|
|
||||||
toastr.error("There doesn't seem to be any images in this comic. Please contact the admin!", "Comics is empty", {timeOut: 8000});
|
toastr.error("There doesn't seem to be any images in this comic. Please contact the admin!", "Comics is empty", {timeOut: 8000});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
toastr.remove();
|
|
||||||
lightbox = SimpleLightbox.open({
|
lightbox = SimpleLightbox.open({
|
||||||
items: data.images,
|
items: data.images,
|
||||||
captions: data.captions,
|
captions: data.captions,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user