diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-05-11 08:56:44 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-05-11 08:56:44 +0200 |
commit | 416049602fdbca6346a0e79e676cebbfbd65e905 (patch) | |
tree | e1497dda8441345d719bfe04c50d5db41cae40d3 /plugins/webbox/html | |
parent | 6191504cbcefd0bf73cef7855ccee4553d9f761f (diff) |
Don't select ..
Diffstat (limited to 'plugins/webbox/html')
-rw-r--r-- | plugins/webbox/html/webbox.js | 9 |
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 + "')\">☐</td>"; + } + + var mouseupdown = "onmousedown=\"entryMouseDown('" + listElements[i].textContent + "')\" " + "onmouseup=\"entryMouseUp('" + listElements[i].textContent + "')\""; result += "<tr>" + - "<td class=\"selector\" onclick=\"toggleSelection('" + listElements[i].textContent + "')\">☐</td>" + + selector + "<td class=\"type\" " + mouseupdown + ">" + type + "</td>" + "<td class=\"name\" " + mouseupdown + ">" + listElements[i].textContent + "</td></tr>"; } |