summaryrefslogtreecommitdiff
path: root/kvmd/web/js/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/web/js/ui.js')
-rw-r--r--kvmd/web/js/ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/web/js/ui.js b/kvmd/web/js/ui.js
index d38b36fb..b4ad9290 100644
--- a/kvmd/web/js/ui.js
+++ b/kvmd/web/js/ui.js
@@ -4,12 +4,12 @@ var ui = new function() {
var __ctl_items = [];
this.init = function() {
- Array.prototype.forEach.call(document.getElementsByClassName("ctl-item"), function(el_item) {
+ Array.prototype.forEach.call($$("ctl-item"), function(el_item) {
el_item.onclick = () => __toggleMenu(el_item);
__ctl_items.push(el_item);
});
- Array.prototype.forEach.call(document.getElementsByClassName("window"), function(el_window) {
+ Array.prototype.forEach.call($$("window"), function(el_window) {
var el_grab = el_window.querySelector(".window-header .window-grab");
__makeWindowMovable(el_grab, el_window);