File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3
3
< div class ="btn-group ">
4
4
< button class ="btn " id ="yes-sanitize "> Yes</ button >
5
5
< button class ="btn " id ="no-sanitize "> No</ button >
6
- < button class ="btn " id ="disable-sanitize "> Dont show this again</ button >
6
+ < button class ="btn " id ="disable-sanitize "> Don't show this again</ button >
7
7
</ div >
8
8
</ div >
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ define(function (require) {
83
83
}
84
84
85
85
86
+ var modalBar ;
86
87
function handleDocumentOpen ( evt , editor ) {
87
88
if ( ! editor || prefs . get ( "onopen" ) !== true ) {
88
89
return ;
@@ -92,12 +93,18 @@ define(function (require) {
92
93
var settings = getPreferences ( doc ) ;
93
94
94
95
if ( sanitize . verify ( doc , settings . useTabChar , settings . size ) ) {
96
+ if ( modalBar ) {
97
+ modalBar . close ( ) ;
98
+ }
95
99
return ;
96
100
}
97
101
98
102
setTimeout ( function ( ) {
99
- var modalBar = new ModalBar ( notificationTmpl , true ) ;
103
+ if ( modalBar ) {
104
+ modalBar . close ( ) ;
105
+ }
100
106
107
+ modalBar = new ModalBar ( notificationTmpl , false ) ;
101
108
modalBar . getRoot ( )
102
109
. on ( 'click' , '#yes-sanitize' , function ( ) {
103
110
modalBar . close ( ) ;
You can’t perform that action at this time.
0 commit comments