From 7664f68b0010c691a8097231113d17d5281d8a96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 23 Mar 2011 07:51:19 +0100 Subject: [PATCH] Move ajaxification of album creation form fields to imageBrowser.html. --- src/main/resources/static/javascript/sone.js | 12 ------------ src/main/resources/templates/imageBrowser.html | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 12 deletions(-) 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> -- 2.7.4