@@ -6,7 +6,6 @@ function demo() {
66 error : ""
77 } ,
88 schedule : {
9- scheduleMsg : "Cannot implement schedule: " ,
109 indices : [ ] ,
1110 resultAccesses : [ ] ,
1211 } ,
@@ -99,9 +98,6 @@ function demo() {
9998 } ,
10099 getError : function ( ) {
101100 return ( model . output . error !== "" ) ? model . output . error : model . input . error ;
102- } ,
103- hasInputOutputError : function ( ) {
104- return model . getError ( ) && ! model . getError ( ) . includes ( model . schedule . scheduleMsg ) ;
105101 }
106102 } ;
107103
@@ -111,22 +107,12 @@ function demo() {
111107 updateView : function ( timeout ) {
112108 clearTimeout ( txtExprView . timerEvent ) ;
113109 if ( model . getError ( ) !== "" ) {
114- var markError = function ( ) {
115- var scheduleMsg = "Cannot implement schedule: " ;
116- var error = model . getError ( ) ;
117- if ( error . includes ( model . schedule . scheduleMsg ) ) {
118- error = error . substring ( error . indexOf ( model . schedule . scheduleMsg )
119- + model . schedule . scheduleMsg . length ) ;
120- $ ( "#scheduleError" ) . html ( error ) ;
121- $ ( "#scheduleError" ) . parent ( ) . addClass ( 'is-invalid' ) ;
122- } else {
123- $ ( "#lblError" ) . html ( error ) ;
124- $ ( "#txtExpr" ) . parent ( ) . addClass ( 'is-invalid' ) ;
125- }
126- } ;
110+ var markError = function ( ) {
111+ $ ( "#lblError" ) . html ( model . getError ( ) ) ;
112+ $ ( "#txtExpr" ) . parent ( ) . addClass ( 'is-invalid' ) ;
113+ }
127114 txtExprView . timerEvent = setTimeout ( markError , timeout ) ;
128115 } else {
129- $ ( "#scheduleError" ) . parent ( ) . removeClass ( 'is-invalid' ) ;
130116 $ ( "#txtExpr" ) . parent ( ) . removeClass ( 'is-invalid' ) ;
131117 }
132118 }
@@ -241,7 +227,7 @@ function demo() {
241227 } ,
242228 updateView : function ( timeout ) {
243229 clearTimeout ( tblFormatsView . timerEvent ) ;
244- if ( model . hasInputOutputError ( ) ) {
230+ if ( model . getError ( ) !== "" ) {
245231 var hideTables = function ( ) {
246232 $ ( "#tblFormats" ) . hide ( ) ;
247233 $ ( "#tblSchedule" ) . hide ( ) ;
0 commit comments