X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=5a26c1a2741fdd8360a0b46997185770c45311bc;hb=f71a4ea27ef8a7ef12466a81d62b5ca60fc69854;hp=6faea1122685d6b1746a27b652b1bcc9f5f7703f;hpb=bf6507766c997f89bb2415e837fc11ba01829433;p=Sone.git diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 6faea11..5a26c1a 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -50,11 +50,25 @@ }); }); $("#edit-album label").hide(); + + /* hide all those forms. */ + hideBlock = function(blockElement, clickElement) { + $(blockElement).hide(); + $(clickElement).removeClass("hidden").click(function() { + $(blockElement).slideDown(); + $(this).slideUp(); + return false; + }); + }; + + hideBlock(".edit-album", ".show-edit-album"); + hideBlock(".create-album", ".show-create-album"); + hideBlock(".upload-image", ".show-upload-image"); }); <%/if> -
<% album.description|html>
+ + <%if album.sone.local> ++
+
+