diff options
Diffstat (limited to 'apps/gallery/js/album_cover.js')
-rw-r--r-- | apps/gallery/js/album_cover.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gallery/js/album_cover.js b/apps/gallery/js/album_cover.js index 0e791689a1a..b871c3d89b5 100644 --- a/apps/gallery/js/album_cover.js +++ b/apps/gallery/js/album_cover.js @@ -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")) } } |