21.04.2023, 11:34
Add this to custom JavaScript. Link element additional class must be set to alarm-link. When 1/1/1 is true plan ID 1 is shown, 2 otherwise.
Code:
$(function() {
$('.alarm-link').off('vclick').on('vclick', function() {
var alarm = grp.getvalue('1/1/1'), id;
if (alarm) {
id = 1;
}
else {
id = 2;
}
showPlan(id);
});
});