This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,13 @@ angular.module('ui.bootstrap.modal', [])
166
166
backdrop : modal . backdrop ,
167
167
keyboard : modal . keyboard
168
168
} ) ;
169
-
169
+
170
+ if ( backdropIndex ( ) >= 0 && ! backdropDomEl ) {
171
+ backdropjqLiteEl = angular . element ( '<div modal-backdrop></div>' ) ;
172
+ backdropDomEl = $compile ( backdropjqLiteEl ) ( backdropScope ) ;
173
+ body . append ( backdropDomEl ) ;
174
+ }
175
+
170
176
var angularDomEl = angular . element ( '<div modal-window></div>' ) ;
171
177
angularDomEl . attr ( 'window-class' , modal . windowClass ) ;
172
178
angularDomEl . attr ( 'index' , openedWindows . length ( ) - 1 ) ;
@@ -175,12 +181,7 @@ angular.module('ui.bootstrap.modal', [])
175
181
var modalDomEl = $compile ( angularDomEl ) ( modal . scope ) ;
176
182
openedWindows . top ( ) . value . modalDomEl = modalDomEl ;
177
183
body . append ( modalDomEl ) ;
178
-
179
- if ( backdropIndex ( ) >= 0 && ! backdropDomEl ) {
180
- backdropjqLiteEl = angular . element ( '<div modal-backdrop></div>' ) ;
181
- backdropDomEl = $compile ( backdropjqLiteEl ) ( backdropScope ) ;
182
- body . append ( backdropDomEl ) ;
183
- }
184
+
184
185
} ;
185
186
186
187
$modalStack . close = function ( modalInstance , result ) {
You can’t perform that action at this time.
0 commit comments