From: David ‘Bombe’ Roden Date: Sat, 1 Aug 2015 20:52:03 +0000 (+0200) Subject: Show moving buttons for images, too X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=sidebyside;h=e5e67f4536966700d9a5e3120ca70fd3d4a4867d;p=Sone.git Show moving buttons for images, too --- diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index c49cead..c705a2c 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -61,7 +61,7 @@ * Prepare all images for inline editing. */ function prepareImages() { - $(".image").each(function() { + $(".image-in-album").each(function() { imageId = $(this).closest(".image-in-album").find(".image-id").text(); (function(element, imageId) { $("button[name='moveLeft'], button[name='moveRight']", element).click(function() { @@ -184,9 +184,6 @@ }); $("#edit-album label").hide(); - /* hide non-js image move buttons. */ - $(".move-buttons").hide(); - hideAndShowBlock("div.edit-album", ".show-edit-album", ".hide-edit-album"); hideAndShowBlock("div.create-album", ".show-create-album", ".hide-create-album"); hideAndShowBlock("div.upload-image", ".show-upload-image", ".hide-upload-image"); @@ -269,32 +266,6 @@
<%include include/viewImage.html> - <%if album.sone.local> -
- - - - -
- - -
- - -
- <%/if>
<%= false|store key==endRow> <%if loop.odd><%= true|store key==endRow><%/if> diff --git a/src/main/resources/templates/include/viewImage.html b/src/main/resources/templates/include/viewImage.html index cdf5da1..83a83d9 100644 --- a/src/main/resources/templates/include/viewImage.html +++ b/src/main/resources/templates/include/viewImage.html @@ -7,6 +7,17 @@
+ <%if image.sone.local> +
+ + + +
+ + +
+
+ <%/if>
<% image.description|parse sone=image.sone|render>