Skip to content

Commit

Permalink
Remove some redundant (also wrong) code.
Browse files Browse the repository at this point in the history
  • Loading branch information
okonomiyaki3000 committed Apr 24, 2018
1 parent 6111d10 commit f47ad5d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions administrator/templates/isis/js/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f47ad5d

Please sign in to comment.