File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
administrator/templates/isis/js Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ jQuery(function($)
3434 if ( input . val ( ) == '' ) {
3535 label . addClass ( 'active btn-primary' ) ;
3636 } else if ( input . val ( ) == 0 ) {
37- label . addClass ( 'active btn-' + ( reversed ? 'danger' : 'success' ) ) ;
38- } else {
3937 label . addClass ( 'active btn-' + ( reversed ? 'success' : 'danger' ) ) ;
38+ } else {
39+ label . addClass ( 'active btn-' + ( reversed ? 'danger' : 'success' ) ) ;
4040 }
4141
4242 input . prop ( 'checked' , true ) ;
@@ -51,9 +51,9 @@ jQuery(function($)
5151 if ( $self . val ( ) == '' ) {
5252 $label . addClass ( 'active btn-primary' ) ;
5353 } else if ( $self . val ( ) == 0 ) {
54- $label . addClass ( 'active btn-' + ( reversed ? 'danger' : 'success' ) ) ;
55- } else {
5654 $label . addClass ( 'active btn-' + ( reversed ? 'success' : 'danger' ) ) ;
55+ } else {
56+ $label . addClass ( 'active btn-' + ( reversed ? 'danger' : 'success' ) ) ;
5757 }
5858 } ) ;
5959 // add color classes to chosen field based on value
You can’t perform that action at this time.
0 commit comments