implemented highlighting of tiles on action edit

This commit is contained in:
Stephan Richter
2021-05-28 13:18:23 +02:00
parent 029222ffa2
commit 19b1b3ed01
24 changed files with 102 additions and 20 deletions

View File

@@ -197,6 +197,14 @@ function heartbeat(data){
return false;
}
function highlight(id,enable = true){
if (enable) {
$('#'+id).addClass('highlight');
} else {
$('#'+id).removeClass('highlight');
}
}
function keypress(ev){
if (ev.code === 'Escape') return request({realm:"cu",action:"emergency"});
if (ev.code === 'Enter') {