X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=6adb3ddc49d67411ecd8713182f4cbb7d06ae634;hb=6b7326056a7e63e85faf2aef5d03eeceeb082af7;hp=019da9f5f4037bed2409d2ea643feaa0e5b066de;hpb=e67e554aa7b1b4de9059d3f0bb741b95b79a7cfa;p=Sone.git diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index 019da9f..6adb3dd 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> ++
+
+