@@ -371,13 +371,13 @@ define([
371
371
}
372
372
373
373
$scope . $watch ( 'mailerEnabled' , function ( newVal ) {
374
- $ ( 'input#mailerHost' ) . attr ( 'disabled' , ! newVal ) ;
375
- $ ( 'input#mailerSSL' ) . attr ( 'disabled' , ! newVal ) ;
376
- $ ( 'input#mailerPort' ) . attr ( 'disabled' , ! newVal ) ;
377
- $ ( 'input#mailerUsername' ) . attr ( 'disabled' , ! newVal ) ;
378
- $ ( 'input#mailerPassword' ) . attr ( 'disabled' , ! newVal ) ;
379
- $ ( 'input#mailerFrom' ) . attr ( 'disabled' , ! newVal ) ;
380
- $ ( 'button#mailerSubmit' ) . attr ( 'disabled' , ! newVal ) ;
374
+ $ ( 'input#mailerHost' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
375
+ $ ( 'input#mailerSSL' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
376
+ $ ( 'input#mailerPort' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
377
+ $ ( 'input#mailerUsername' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
378
+ $ ( 'input#mailerPassword' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
379
+ $ ( 'input#mailerFrom' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
380
+ $ ( 'button#mailerSubmit' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
381
381
} ) ;
382
382
383
383
$scope . defaultTicketTypeChanged = function ( ) {
@@ -641,11 +641,12 @@ define([
641
641
$scope . $watch ( 'mailerCheckEnabled' , function ( newVal ) {
642
642
var $mailerCheckTicketTypeSelectize = $ ( 'select#mailerCheckTicketType' ) . selectize ( ) [ 0 ] ;
643
643
var $mailerCheckTicketPrioritySelectize = $ ( 'select#mailerCheckTicketPriority' ) . selectize ( ) [ 0 ] ;
644
- $ ( 'input#mailerCheckHost' ) . attr ( 'disabled' , ! newVal ) ;
645
- $ ( 'input#mailerCheckPort' ) . attr ( 'disabled' , ! newVal ) ;
646
- $ ( 'input#mailerCheckUsername' ) . attr ( 'disabled' , ! newVal ) ;
647
- $ ( 'input#mailerCheckPassword' ) . attr ( 'disabled' , ! newVal ) ;
648
- $ ( 'button#mailerCheckSubmit' ) . attr ( 'disabled' , ! newVal ) ;
644
+
645
+ $ ( 'input#mailerCheckHost' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
646
+ $ ( 'input#mailerCheckPort' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
647
+ $ ( 'input#mailerCheckUsername' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
648
+ $ ( 'input#mailerCheckPassword' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
649
+ $ ( 'button#mailerCheckSubmit' ) . attr ( 'disabled' , ! newVal ) . parent ( ) . toggleClass ( 'md-input-wrapper-disabled' , ! newVal ) ;
649
650
if ( ! _ . isUndefined ( $mailerCheckTicketTypeSelectize ) ) {
650
651
if ( ! newVal )
651
652
$mailerCheckTicketTypeSelectize . selectize . disable ( ) ;
@@ -1616,6 +1617,7 @@ define([
1616
1617
}
1617
1618
} ) . then ( function successCallback ( ) {
1618
1619
helpers . UI . showSnackbar ( 'Color Scheme Saved. Reloading...' , false ) ;
1620
+ // Call rebuild of app.min.css
1619
1621
$timeout ( function ( ) { $window . location . reload ( ) ; } , 1000 ) ;
1620
1622
} , function errorCallback ( err ) {
1621
1623
helpers . UI . showSnackbar ( err , true ) ;
0 commit comments