Add form for album creation.
[Sone.git] / src / main / resources / static / javascript / sone.js
index 9aa0b82..16eb806 100644 (file)
@@ -882,6 +882,13 @@ $(document).ready(function() {
                });
        });
 
+       /* ajaxify album creation input field. */
+       getTranslation("WebInterface.DefaultText.Reply", function(text) {
+               $("#create-album input[type=text]".each(function() {
+                       registerInputTextareaSwap(this, text, "name", false, true);
+               });
+       });
+
        /* Ajaxifies all posts. */
        /* calling getTranslation here will cache the necessary values. */
        getTranslation("WebInterface.Confirmation.DeletePostButton", function(text) {