X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Fstatic%2Fjavascript%2Fsone.js;h=0b28fb7f8e63c71daec061b85921a72c0b37e518;hb=6cca4ca3d03e32defb280b9de890cb40a5e0fd74;hp=9ef681203c8ec20a578460ee9c8be8f8d63efe1d;hpb=13b6e1517335f9e1bcf883ddd6f27fde95ce551b;p=Sone.git diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 9ef6812..0b28fb7 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1342,6 +1342,18 @@ $(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) {