From: David ‘Bombe’ Roden Date: Fri, 23 Sep 2011 22:26:30 +0000 (+0200) Subject: Add inline editing for albums, rework Javascript. X-Git-Tag: 0.7^2~2^2~7 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=1998b0c5551c5488ff61e2dc9f790b5d68c846e2 Add inline editing for albums, rework Javascript. --- diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index a4fef79..d0badcd 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -3,25 +3,249 @@ <%if albumRequested> @@ -39,79 +263,6 @@ <%if album.sone.local> <%/if> @@ -235,29 +358,7 @@ <%/if> - <%foreach album.albums album> - <%first>

<%= Page.ImageBrowser.Header.Albums|l10n|html>

<%/first> - <%if loop.count|mod divisor=3>
<%/if> - - <%= false|store key=endRow> - <%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if> - <%last><%= true|store key=endRow><%/last> - <%if endRow>
<%/if> - <%/foreach> + <%include include/browseAlbums.html> <%if album.sone.local> @@ -438,6 +539,8 @@ $("#create-album label").hide(); hideAndShowBlock(".create-album", ".show-create-album", ".hide-create-album"); + + prepareAlbums(); }); <%/if> @@ -450,28 +553,7 @@

<%= Page.ImageBrowser.Sone.Title|l10n|replace needle='{sone}' replacementKey=sone.niceName|html>

- <%foreach sone.albums album> - <%if loop.count|mod divisor=3>
<%/if> - - <%= false|store key=endRow> - <%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if> - <%last><%= true|store key=endRow><%/last> - <%if endRow>
<%/if> - <%/foreach> + <%include include/browseAlbums.html> <%if sone.local>