File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ var MainPanelView = (function (_super) {
311
311
} ;
312
312
MainPanelView . prototype . clearError = function ( ) {
313
313
this . clearedError = true ;
314
+ this . clearSummary ( ) ;
314
315
this . errorBody . empty ( ) ;
315
316
} ;
316
317
MainPanelView . prototype . addError = function ( view ) {
@@ -330,13 +331,17 @@ var MainPanelView = (function (_super) {
330
331
handler ( this . summary ) ;
331
332
}
332
333
} ;
334
+ MainPanelView . prototype . clearSummary = function ( ) {
335
+ this . summary . html ( '' ) ;
336
+ this . summary . off ( ) ;
337
+ } ;
333
338
MainPanelView . prototype . setErrorPanelErrorCount = function ( fileErrorCount , totalErrorCount ) {
334
339
var title = panelHeaders . error + " ( <span class=\"text-success\">No Errors</span> )" ;
335
340
if ( totalErrorCount > 0 ) {
336
341
title = panelHeaders . error + " (\n <span class=\"text-highlight\" style=\"font-weight: bold\"> " + fileErrorCount + " </span>\n <span class=\"text-error\" style=\"font-weight: bold;\"> file" + ( fileErrorCount === 1 ? "" : "s" ) + " </span>\n <span class=\"text-highlight\" style=\"font-weight: bold\"> " + totalErrorCount + " </span>\n <span class=\"text-error\" style=\"font-weight: bold;\"> error" + ( totalErrorCount === 1 ? "" : "s" ) + " </span>\n )" ;
337
342
}
338
343
else {
339
- this . summary . html ( '' ) ;
344
+ this . clearSummary ( ) ;
340
345
this . errorBody . html ( '<span class="text-success">No errors in open files \u2665</span>' ) ;
341
346
}
342
347
this . errorPanelBtn . html ( title ) ;
You can’t perform that action at this time.
0 commit comments