Always create new album in current album

pull/639/head
Tobias Reich 8 years ago
parent a0abb1a460
commit 635b31eb0b

8
dist/main.js vendored

File diff suppressed because one or more lines are too long

@ -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 = `
<select name='parent'>
<option value='0'>- None -</option>
${ buildAlbumOptions(data.albums, albumID) }
</select>
`
let msg = `
<p>Enter a title for the new album: <input class='text' name='title' type='text' maxlength='50' placeholder='Title' value='Untitled'></p>
<p>Select the parent album:<br/> ${ cmbxOptions }</p>
`
basicModal.show({

Loading…
Cancel
Save