summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-04 04:36:05 +0300
committerDevaev Maxim <[email protected]>2018-11-04 04:36:05 +0300
commit341b9be3d3cc87cda8c564bc945b59ae30036fdf (patch)
treef54cb464f37ce663fbc71dbc4039bd59d535872f
parentbdca0e883950281da6001cbe1710842ac687c37a (diff)
fixed log button in ios
-rw-r--r--web/index.html2
-rw-r--r--web/js/ui.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/web/index.html b/web/index.html
index 8e49aed7..99e48cf8 100644
--- a/web/index.html
+++ b/web/index.html
@@ -114,7 +114,7 @@
</div>
<hr>
<div class="ctl-dropdown-content-buttons">
- <button data-force-hide-menu onclick="window.open('kvmd/log?seek=3600&follow=1', '_blank');">&bull; View log</button>
+ <button data-force-hide-menu id="open-log-button">&bull; Open log</button>
</div>
</div>
</div>
diff --git a/web/js/ui.js b/web/js/ui.js
index 20bba472..164d46f0 100644
--- a/web/js/ui.js
+++ b/web/js/ui.js
@@ -41,6 +41,7 @@ function Ui() {
tools.setOnClick($("show-about-button"), () => self.showWindow($("about-window")));
tools.setOnClick($("show-keyboard-button"), () => self.showWindow($("keyboard-window")));
tools.setOnClick($("show-stream-button"), () => self.showWindow($("stream-window")));
+ tools.setOnClick($("open-log-button"), () => window.open("kvmd/log?seek=3600&follow=1", "_blank"));
self.showWindow($("stream-window"));
};