There’s no URL to return to.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 12 Jan 2011 19:05:45 +0000 (20:05 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 12 Jan 2011 19:05:45 +0000 (20:05 +0100)
If creation fails because some parameters are wrong or missing, the
template is shown. Otherwise there will be a redirect to the new album.

src/main/resources/templates/include/createAlbum.html

index 7846b21..3f349ea 100644 (file)
@@ -1,6 +1,5 @@
 <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>