summaryrefslogtreecommitdiffhomepage
path: root/plugins/webbox/html/webbox.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/webbox/html/webbox.js')
-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>";
}