From 66ace58e2eda9039f3dcde7466b13fb45558ee13 Mon Sep 17 00:00:00 2001 From: Kai Date: Fri, 13 Mar 2020 17:21:08 +0100 Subject: [PATCH] add enlarge link --- neat.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/neat.js b/neat.js index d4234b8..a7ca4c2 100644 --- a/neat.js +++ b/neat.js @@ -175,7 +175,12 @@ function setupInterface(data, file, urls) { img_url = img_url.replace('width', width.toString()); img_url = img_url.replace('height', height.toString()); + if ($('#enlarge-page-link').length == 0) { + $('#preview-rgn').append($('enlarge ')); + } + $("#preview-link").attr("href", img_url); + $("#enlarge-page-link").attr("href", img_url); img_url = urls[data.data[nRow]['url_id']]; @@ -194,7 +199,7 @@ function setupInterface(data, file, urls) { img_url = img_url.replace('height', height.toString()); if ($('#full-page-link').length == 0) { - $('#preview-rgn').append($('full page ')); + $('#preview-rgn').append($('| full ')); } $("#full-page-link").attr("href", img_url);