From: David ‘Bombe’ Roden Date: Wed, 23 Mar 2011 06:51:19 +0000 (+0100) Subject: Move ajaxification of album creation form fields to imageBrowser.html. X-Git-Tag: beta-freefall-0.6.2-1~82 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7664f68b0010c691a8097231113d17d5281d8a96;p=Sone.git Move ajaxification of album creation form fields to imageBrowser.html. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 0b28fb7..9ef6812 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1342,18 +1342,6 @@ $(document).ready(function() { }); }); - /* ajaxify album creation input field. */ - getTranslation("WebInterface.DefaultText.CreateAlbum.Name", function(text) { - $("#create-album input[name='name']").each(function() { - registerInputTextareaSwap(this, text, "name", false, true); - }); - }); - getTranslation("WebInterface.DefaultText.CreateAlbum.Description", function(text) { - $("#create-album input[name='description']").each(function() { - registerInputTextareaSwap(this, text, "description", true, true); - }); - }); - /* Ajaxifies all posts. */ /* calling getTranslation here will cache the necessary values. */ getTranslation("WebInterface.Confirmation.DeletePostButton", function(text) { diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 9dac07b..e1f4aea 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -1,5 +1,23 @@ <%include include/head.html> + + <%if albumRequested>