diff --git a/dist/main.js b/dist/main.js index 6dbb9ea..3a490a8 100644 Binary files a/dist/main.js and b/dist/main.js differ diff --git a/src/scripts/album.js b/src/scripts/album.js index 66c1999..e84aac9 100644 --- a/src/scripts/album.js +++ b/src/scripts/album.js @@ -170,7 +170,7 @@ album.add = function(albumID = 0) { const action = function(data) { let title = data.title - let parent = data.parent + let parent = albumID const isNumber = (n) => (!isNaN(parseFloat(n)) && isFinite(n)) @@ -196,16 +196,8 @@ album.add = function(albumID = 0) { api.post('Albums::get', { parent: -1 }, function(data) { - let cmbxOptions = ` - - ` - let msg = `

Enter a title for the new album:

-

Select the parent album:
${ cmbxOptions }

` basicModal.show({ @@ -254,7 +246,7 @@ album.delete = function(albumIDs) { }) } else if (visible.album()) { - + // if we deleted the current album, go to its parent if (albumIDs.length==1 && album.json.id==albumIDs[0]) { @@ -759,10 +751,10 @@ album.move = function(albumIDs, titles = []) { album.reload = function() { let albumID = album.getID() - + album.refresh() albums.refresh() - + if (visible.album()) lychee.goto(albumID) else lychee.goto()