From b5ae924031d175bf0cadee2375190615ab2edd84 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 20 Jan 2012 19:28:57 +0100 Subject: [PATCH] dont show errors when not renaming an album --- apps/gallery/js/album_cover.js | 5 +++-- 1 file 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")) } } -- 2.39.5