diff --git a/internal/js/files_support.js b/internal/js/files_support.js index 0af0ddd..9230e18 100644 --- a/internal/js/files_support.js +++ b/internal/js/files_support.js @@ -936,3 +936,21 @@ function goOutOfViewer() $('#viewer_div').addClass('d-none') $('#files_div').removeClass('d-none') } + + +// left arrow onclick handler to go to prev image from inside the viewer +function prevImageInViewer() +{ + getPreviousEntry() + setDisabledForViewingNextPrevBttons() + ViewImageOrVideo() +} + +// right arrow onclick handler to go to next image from inside the viewer +function nextImageInViewer() +{ + getNextEntry() + setDisabledForViewingNextPrevBttons() + ViewImageOrVideo() + +} diff --git a/templates/files.html b/templates/files.html index d3d4577..0f55a97 100644 --- a/templates/files.html +++ b/templates/files.html @@ -127,8 +127,7 @@ @@ -161,8 +160,8 @@ - @@ -228,9 +227,6 @@ - {# - $.ajax({ type: 'POST', data: '&eid-0='+document.viewing.id, url: '/delete_files', success: function(data){ window.location='/'; return false; } })"> - #} {% endblock main_content %} {% block script_content %}