mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-18 03:53:56 +00:00
clicking on a device column makes it the active the device
This commit is contained in:
@@ -168,6 +168,9 @@ function switchDevice(id) {
|
||||
document.getElementById('all-devices').insertAdjacentHTML('afterbegin', html);
|
||||
|
||||
$deviceWrapper = document.getElementById(`device-${i}`);
|
||||
$deviceWrapper.onclick = function (e) {
|
||||
switchDevice(i);
|
||||
};
|
||||
}
|
||||
|
||||
window.switchClass(document.getElementById(id), 'active-device');
|
||||
|
||||
Reference in New Issue
Block a user