diff --git a/administrator/templates/isis/js/template.js b/administrator/templates/isis/js/template.js index ec786e08f9286..d42adc59a8269 100644 --- a/administrator/templates/isis/js/template.js +++ b/administrator/templates/isis/js/template.js @@ -105,16 +105,7 @@ jQuery(function($) } } }); - $('.btn-group input[checked=checked]').each(function() - { - if ($(this).val() == '') { - $('label[for=' + $(this).attr('id') + ']').addClass('active btn-primary'); - } else if ($(this).val() == 0) { - $('label[for=' + $(this).attr('id') + ']').addClass('active btn-danger'); - } else { - $('label[for=' + $(this).attr('id') + ']').addClass('active btn-success'); - } - }); + // add color classes to chosen field based on value $('select[class^="chzn-color"], select[class*=" chzn-color"]').on('liszt:ready', function(){ var select = $(this);