summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-11 08:56:44 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-11 08:56:44 +0200
commit416049602fdbca6346a0e79e676cebbfbd65e905 (patch)
treee1497dda8441345d719bfe04c50d5db41cae40d3
parent6191504cbcefd0bf73cef7855ccee4553d9f761f (diff)
Don't select ..
-rw-r--r--plugins/webbox/html/webbox.js9
1 files changed, 7 insertions, 2 deletions
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 = "<td class=\"selector\"></td>";
+ if (listElements[i].textContent != "..") {
+ selector = "<td class=\"selector\" onclick=\"toggleSelection('" + listElements[i].textContent + "')\">&#9744;</td>";
+ }
+
+ var mouseupdown =
"onmousedown=\"entryMouseDown('" + listElements[i].textContent + "')\" " +
"onmouseup=\"entryMouseUp('" + listElements[i].textContent + "')\"";
result += "<tr>" +
- "<td class=\"selector\" onclick=\"toggleSelection('" + listElements[i].textContent + "')\">&#9744;</td>" +
+ selector +
"<td class=\"type\" " + mouseupdown + ">" + type + "</td>" +
"<td class=\"name\" " + mouseupdown + ">" + listElements[i].textContent + "</td></tr>";
}