From 416049602fdbca6346a0e79e676cebbfbd65e905 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 11 May 2020 08:56:44 +0200 Subject: Don't select .. --- plugins/webbox/html/webbox.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/webbox/html/webbox.js b/plugins/webbox/html/webbox.js index 7ded25f..a85c0c6 100644 --- a/plugins/webbox/html/webbox.js +++ b/plugins/webbox/html/webbox.js @@ -49,11 +49,16 @@ function loadContents(dir) { type = ""; } - mouseupdown = + var selector = ""; + if (listElements[i].textContent != "..") { + selector = "☐"; + } + + var mouseupdown = "onmousedown=\"entryMouseDown('" + listElements[i].textContent + "')\" " + "onmouseup=\"entryMouseUp('" + listElements[i].textContent + "')\""; result += "" + - "☐" + + selector + "" + type + "" + "" + listElements[i].textContent + ""; } -- cgit v1.2.3