This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree 2 files changed +0
-5
lines changed
2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ dialogModule.provider("$dialog", function(){
20
20
backdropClass : 'modal-backdrop' ,
21
21
transitionClass : 'fade' ,
22
22
triggerClass : 'in' ,
23
- dialogOpenClass : 'modal-open' ,
24
23
resolve :{ } ,
25
24
backdropFade : false ,
26
25
dialogFade :false ,
@@ -132,7 +131,6 @@ dialogModule.provider("$dialog", function(){
132
131
133
132
$compile ( self . modalEl ) ( $scope ) ;
134
133
self . _addElementsToDom ( ) ;
135
- body . addClass ( self . options . dialogOpenClass ) ;
136
134
137
135
// trigger tranisitions
138
136
setTimeout ( function ( ) {
@@ -152,7 +150,6 @@ dialogModule.provider("$dialog", function(){
152
150
var self = this ;
153
151
var fadingElements = this . _getFadingElements ( ) ;
154
152
155
- body . removeClass ( self . options . dialogOpenClass ) ;
156
153
if ( fadingElements . length > 0 ) {
157
154
for ( var i = fadingElements . length - 1 ; i >= 0 ; i -- ) {
158
155
$transition ( fadingElements [ i ] , removeTriggerClass ) . then ( onCloseComplete ) ;
Original file line number Diff line number Diff line change @@ -99,12 +99,10 @@ describe('Give ui.boostrap.modal', function() {
99
99
} ) ;
100
100
101
101
it ( 'should use global $dialog options' , function ( ) {
102
- provider . options ( { dialogOpenClass : 'test-open-modal' } ) ;
103
102
elm = $compile ( templateGenerator ( 'modalShown' ) ) ( $scope ) ;
104
103
expect ( $document . find ( '.test-open-modal' ) . length ) . toBe ( 0 ) ;
105
104
$scope . $apply ( 'modalShown = true' ) ;
106
105
expect ( $document . find ( 'body > div.modal' ) . length ) . toBe ( 1 ) ;
107
- expect ( $document . find ( '.test-open-modal' ) . length ) . not . toBe ( 0 ) ;
108
106
$scope . $apply ( 'modalShown = false' ) ;
109
107
} ) ;
110
108
You can’t perform that action at this time.
0 commit comments