File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 2525 } else { // Assuming it's a detached DOM element.
2626 dialog . appendChild ( template ) ;
2727 }
28+ CodeMirror . addClass ( wrap , 'dialog-opened' ) ;
2829 return dialog ;
2930 }
3031
4748 } else {
4849 if ( closed ) return ;
4950 closed = true ;
51+ CodeMirror . rmClass ( dialog . parentNode , 'dialog-opened' ) ;
5052 dialog . parentNode . removeChild ( dialog ) ;
5153 me . focus ( ) ;
5254
102104 function close ( ) {
103105 if ( closed ) return ;
104106 closed = true ;
107+ CodeMirror . rmClass ( dialog . parentNode , 'dialog-opened' ) ;
105108 dialog . parentNode . removeChild ( dialog ) ;
106109 me . focus ( ) ;
107110 }
141144 if ( closed ) return ;
142145 closed = true ;
143146 clearTimeout ( doneTimer ) ;
147+ CodeMirror . rmClass ( dialog . parentNode , 'dialog-opened' ) ;
144148 dialog . parentNode . removeChild ( dialog ) ;
145149 }
146150
You can’t perform that action at this time.
0 commit comments