File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 5050 return true ;
5151 }
5252 return false ;
53+ } ,
54+ isDisabled : function ( args ) {
55+ if ( args . context . instances [ 0 ] . state == 'Stopped' ) {
56+ return true ;
57+ }
58+ return false ;
5359 }
5460 } ,
5561 quiescevm : {
Original file line number Diff line number Diff line change 637637 $input . attr ( 'id' , inputId ) ;
638638 $name . find ( 'label' ) . attr ( 'for' , inputId ) ;
639639
640- if ( field . isDisabled )
641- $input . attr ( "disabled" , "disabled" ) ;
640+ if ( field . isDisabled ) {
641+ if ( typeof ( field . isDisabled ) == 'boolean' && field . isDisabled == true ) {
642+ $input . attr ( "disabled" , "disabled" ) ;
643+ }
644+ else if ( typeof ( field . isDisabled ) == 'function' && field . isDisabled ( args ) == true ) {
645+ $input . attr ( "disabled" , "disabled" ) ;
646+ }
647+ }
642648
643649 // Tooltip
644650 if ( field . docID ) {
You can’t perform that action at this time.
0 commit comments