13.09.2022, 09:55
Try this:
Code:
$(function(){
if (window.grp) {
function listen(i) {
grp.listen('1/7/' + i, function(object) {
$('.spin-' +i).toggleClass('spin-animation', object.value == true);
$('.spin-animation.item-read-only')
.removeClass('item-read-only')
.css('pointer-events', 'none');
});
}
for (var i = 1; i <= 40; i++) {
listen(i);
}
}
});