From 11bf077027ec2833d1944a79eeb4d5407195af09 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 11 May 2020 20:12:51 +0200 Subject: webbox: Info page: Info for all entries if nothing selected --- plugins/webbox/TODO | 1 - plugins/webbox/html/webbox.js | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/webbox/TODO b/plugins/webbox/TODO index 288cf38..bbca6d3 100644 --- a/plugins/webbox/TODO +++ b/plugins/webbox/TODO @@ -3,7 +3,6 @@ Prio 1 (for next version) provide index for nested directories, also if requested via url gallery -Info if not selected: all Prio 2 (for future versions) ====== diff --git a/plugins/webbox/html/webbox.js b/plugins/webbox/html/webbox.js index 80ee8ed..6201e55 100644 --- a/plugins/webbox/html/webbox.js +++ b/plugins/webbox/html/webbox.js @@ -833,8 +833,11 @@ function info() { var files = getSelectedFiles(); if (files.length == 0) { - document.getElementById("dialog").innerHTML = "No files selected."; - return; + files = getFileList(); + if (files.length == 0) { + document.getElementById("dialog").innerHTML = "No files available."; + return; + } } // send info request for files -- cgit v1.2.3