Add ID of current album as new parent ID.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 12 Jan 2011 18:44:46 +0000 (19:44 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 12 Jan 2011 18:44:46 +0000 (19:44 +0100)
src/main/resources/templates/include/createAlbum.html

index 18c3da1..7846b21 100644 (file)
@@ -1,6 +1,7 @@
 <form id="create-album" method="post" action="createAlbum.html">
        <input type="hidden" name="formPassword" value="<% formPassword|html>" />
        <input type="hidden" name="returnPage" value="<% request.uri|html>" />
+       <input type="hidden" name="parent" value="<%ifnull ! album><% album.id|html><%/if>" />
        <input type="text" name="album" value="" />
        <button type="submit" name="uploadImage" value="1"><%= Page.ImageBrowser.CreateAlbum.Button.CreateAlbum|l10n|html></button>
 </form>