mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
change boolean background color (#97)
This commit is contained in:
@@ -115,9 +115,9 @@ function generateBoolean(data, struct) {
|
||||
$el.attr('data-index', struct.id);
|
||||
$el.find('[data-name]').attr('data-i18n', struct.translate);
|
||||
if (data === true) {
|
||||
$el.find('[value="true"]').addClass('active');
|
||||
$el.find('[value="true"]').addClass('active bg-success');
|
||||
} else if (data === false) {
|
||||
$el.find('[value="false"]').addClass('active');
|
||||
$el.find('[value="false"]').addClass('active bg-danger');
|
||||
}
|
||||
if (struct.help) {
|
||||
$el.append(generateTooltip(struct.translate));
|
||||
|
||||
Reference in New Issue
Block a user