diff --git a/source/plg_system_t3/base-bs3/js/frontend-edit.js b/source/plg_system_t3/base-bs3/js/frontend-edit.js index 08e8c03f3c..d65a6be7bd 100644 --- a/source/plg_system_t3/base-bs3/js/frontend-edit.js +++ b/source/plg_system_t3/base-bs3/js/frontend-edit.js @@ -40,6 +40,13 @@ input.prop('checked', true).trigger('change'); } + if (input.val() == '') { + label.addClass('active btn-primary'); + } else if (input.val() == 0) { + label.addClass('active btn-danger'); + } else { + label.addClass('active btn-success'); + } }); $(".btn-group input[checked=checked]").each(function()