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