From e5e67f4536966700d9a5e3120ca70fd3d4a4867d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 1 Aug 2015 22:52:03 +0200 Subject: [PATCH] Show moving buttons for images, too --- src/main/resources/templates/imageBrowser.html | 31 +--------------------- .../resources/templates/include/viewImage.html | 11 ++++++++ 2 files changed, 12 insertions(+), 30 deletions(-) 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>
-- 2.7.4