From c9d72990928f1c237b8c2bf0631644b9452e835e Mon Sep 17 00:00:00 2001 From: df Date: Tue, 10 Nov 2020 20:07:24 +0000 Subject: [PATCH] Add Crop shortcut button --- webif/html/browse/bookmarks/script.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webif/html/browse/bookmarks/script.js b/webif/html/browse/bookmarks/script.js index 469b7eb..b90eec7 100644 --- a/webif/html/browse/bookmarks/script.js +++ b/webif/html/browse/bookmarks/script.js @@ -135,6 +135,12 @@ $('#back').button({icons: {primary: "ui-icon-arrowreturnthick-1-w"}}) window.location = '/go/browse?dir=' + encodeURIComponent(dir); }); +$('#crop').button({icons: {primary: "ui-icon-arrowreturnthick-1-e"}}) + .on('click', function() { + window.location = + window.location.href.replace('/bookmarks/?','/crop/crop.jim?'); +}); + $('#update').button() .on('click', function() { draw_slider();