modal.show("Delete Album","Are you sure you want to delete the album '"+albumTitle+"' and all of the photos it contains? This action can't be undone!",buttons);
}else{
buttons[0][0]="Delete Albums and Photos";
buttons[1][0]="Keep Albums";
modal.show("Delete Albums","Are you sure you want to delete all "+albumIDs.length+" selected albums and all of the photos they contain? This action can't be undone!",buttons);
}elseif(newTitle.length>0)loadingBar.show("error","New title too short or too long. Please try again!");
}elseif(newTitle.length>30)loadingBar.show("error","New title too long. Please try another one!");
}],
["Cancel",function(){}]
];
modal.show("Set Title","Please enter a new title for this album: <input class='text' type='text' placeholder='Title' value='"+oldTitle+"'>",buttons);
if(albumIDs.length===1)modal.show("Set Title","Please enter a new title for this album: <input class='text' type='text' placeholder='Title' value='"+oldTitle+"'>",buttons);
elsemodal.show("Set Titles","Please enter a title for all "+albumIDs.length+" selected album: <input class='text' type='text' placeholder='Title' value='"+oldTitle+"'>",buttons);
if(photoIDs.length===1)modal.show("Delete Photo","Are you sure you want to delete the photo '"+photoTitle+"'?<br>This action can't be undone!",buttons);
elsemodal.show("Delete Photos","Are you sure you want to delete all "+photoIDs.length+" selected photo?<br>This action can't be undone!",buttons);
if(photoIDs.length===1){
buttons[0][0]="Delete Photo";
buttons[1][0]="Keep Photo";
modal.show("Delete Photo","Are you sure you want to delete the photo '"+photoTitle+"'?<br>This action can't be undone!",buttons);
}else{
buttons[0][0]="Delete Photos";
buttons[1][0]="Keep Photos";
modal.show("Delete Photos","Are you sure you want to delete all "+photoIDs.length+" selected photo?<br>This action can't be undone!",buttons);
if(photoIDs.length===1)modal.show("Set Title","Please enter a new title for this photo: <input class='text' type='text' placeholder='Title' value='"+oldTitle+"'>",buttons);
elsemodal.show("Set Titles","Please enter a title for all selected photos: <input class='text' type='text' placeholder='Title' value=''>",buttons);
elsemodal.show("Set Titles","Please enter a title for all " +photoIDs.length+" selected photos: <input class='text' type='text' placeholder='Title' value=''>",buttons);