diff options
author | Samuel Mannehed <samuel@cendio.se> | 2022-12-14 13:28:27 +0100 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2022-12-14 13:28:27 +0100 |
commit | f983c78d173322c080c7a8805fc8da436dc4e4d0 (patch) | |
tree | a284e090debface119ab7633b5191a0233bfb7d4 /app/ui.js | |
parent | 1ff035c330e8aa1dfe5d1a6e7f9aebf5e3c80428 (diff) | |
download | novnc-f983c78d173322c080c7a8805fc8da436dc4e4d0.tar.gz |
Make connect button a regular <button>
It is a button, let the HTML element reflect that. And instead of
having the outer div being clickable, lets only make the inner one
work like a button. Because of that, this commit renames the outer div
to "connect_box" instead of "connect_button".
Note that we remove the disabled :hover-effect for touch on this button.
It doesn't make much difference since this button is one of a kind.
Diffstat (limited to 'app/ui.js')
-rw-r--r-- | app/ui.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -319,7 +319,8 @@ const UI = { addConnectionControlHandlers() { document.getElementById("noVNC_disconnect_button") .addEventListener('click', UI.disconnect); - document.getElementById("noVNC_connect_button") + document.getElementById("noVNC_connect_box") + .getElementsByTagName('button')[0] .addEventListener('click', UI.connect); document.getElementById("noVNC_cancel_reconnect_button") .addEventListener('click', UI.cancelReconnect); |