Skip to content
Snippets Groups Projects
Commit b5ae9240 authored by Robin Appelman's avatar Robin Appelman
Browse files

dont show errors when not renaming an album

parent 9dcdf517
Branches
No related tags found
No related merge requests found
......@@ -88,6 +88,9 @@ function galleryRemove(albumName) {
function galleryRename(name) {
var result = window.prompt(t('gallery',"Input new gallery name"), name);
if(result=='' || result==name){
return;
}
if (result) {
if (Albums.find(result)) {
alert("Album named '" + result + "' already exists");
......@@ -101,8 +104,6 @@ function galleryRename(name) {
}
});
} else {
alert(t('gallery',"Album name can't be empty"))
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment