summaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-11 20:12:51 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-11 20:12:51 +0200
commit11bf077027ec2833d1944a79eeb4d5407195af09 (patch)
treec2550110a079eb811f59254c755ea2f6be9aa72a /plugins
parent99048beee343e0aacf538d53ce91c7b545f09089 (diff)
webbox: Info page: Info for all entries if nothing selected
Diffstat (limited to 'plugins')
-rw-r--r--plugins/webbox/TODO1
-rw-r--r--plugins/webbox/html/webbox.js7
2 files changed, 5 insertions, 3 deletions
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