Skip to content

Commit

Permalink
Success/Danger classes reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
okonomiyaki3000 authored Feb 28, 2018
1 parent fdd2ac3 commit 579290e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions administrator/templates/isis/js/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jQuery(function($)
if (input.val() == '') {
label.addClass('active btn-primary');
} else if (input.val() == 0) {
label.addClass('active btn-' + (reversed ? 'danger' : 'success'));
} else {
label.addClass('active btn-' + (reversed ? 'success' : 'danger'));
} else {
label.addClass('active btn-' + (reversed ? 'danger' : 'success'));
}

input.prop('checked', true);
Expand All @@ -51,9 +51,9 @@ jQuery(function($)
if ($self.val() == '') {
$label.addClass('active btn-primary');
} else if ($self.val() == 0) {
$label.addClass('active btn-' + (reversed ? 'danger' : 'success'));
} else {
$label.addClass('active btn-' + (reversed ? 'success' : 'danger'));
} else {
$label.addClass('active btn-' + (reversed ? 'danger' : 'success'));
}
});
// add color classes to chosen field based on value
Expand Down

0 comments on commit 579290e

Please sign in to comment.