26.11.2021, 11:35
Set Additional class to btn-inversed
Add to Custom CSS:
Add to Custom JavaScript:
Add to Custom CSS:
Code:
.touch .btn-inversed .btn-success {
background-image: none;
background-color: red;
}
Add to Custom JavaScript:
Code:
$(function() {
$('.touch .btn-inversed').each(function(_, el) {
var $el = $(el), addr = $el.data('status-object'), btn = $el.find('.btn');
grp.listen(addr, function(obj) {
setTimeout(function() {
btn.text(obj.value ? '×' : '✓');
}, 1);
});
});
});