X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FimageBrowser.html;h=1da99ff4b5859a4ae70fdf2dd0d1e716f27dbfa8;hb=60926d0dc3b2139029c3fcb0b3d28caccf4b83b3;hp=d0badcdb4dcfeaff857f06b548e7189bab09a741;hpb=1998b0c5551c5488ff61e2dc9f790b5d68c846e2;p=Sone.git diff --git a/src/main/resources/templates/imageBrowser.html b/src/main/resources/templates/imageBrowser.html index d0badcd..1da99ff 100644 --- a/src/main/resources/templates/imageBrowser.html +++ b/src/main/resources/templates/imageBrowser.html @@ -118,9 +118,9 @@ ajaxGet("editImage.ajax", { "formPassword": getFormPassword(), "image": imageId, "title": title, "description": description }, function(data) { if (data && data.success) { getImage(data.imageId).find(".image-title").text(data.title); - getImage(data.imageId).find(".image-description").text(data.description); + getImage(data.imageId).find(".image-description").html(data.parsedDescription); getImage(data.imageId).find(":input[name='title']").attr("defaultValue", title); - getImage(data.imageId).find(":input[name='description']").attr("defaultValue", description); + getImage(data.imageId).find(":input[name='description']").attr("defaultValue", data.description); cancelImageEditing(); } }); @@ -322,7 +322,7 @@ <%/foreach> -

<% album.description|html>

+

<% album.description|parse sone=album.sone>

<%if album.sone.local> @@ -358,7 +358,7 @@ <%/if> - <%include include/browseAlbums.html> + <%include include/browseAlbums.html albums=album.albums> <%if album.sone.local> @@ -378,7 +378,7 @@
<% image.title|html>
-
<% image.description|html>
+
<% image.description|parse sone=image.sone>
<%if album.sone.local>
@@ -553,7 +553,7 @@

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

- <%include include/browseAlbums.html> + <%include include/browseAlbums.html albums=sone.albums> <%if sone.local>