Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(dialog): reintroduced dialogOpenClass option
Browse files Browse the repository at this point in the history
This option represents  class which is added to the body when the dialog is open.
It was present before in twitter bootstrap, then removed in 2.3.0,
but then recently reintroduced in 3.0

Closes #798
  • Loading branch information
Louis Sivillo authored and pkozlowski-opensource committed Aug 13, 2013
1 parent bf30898 commit d3da8b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dialog/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dialogModule.provider("$dialog", function(){
backdropClass: 'modal-backdrop',
transitionClass: 'fade',
triggerClass: 'in',
dialogOpenClass: 'modal-open',
resolve:{},
backdropFade: false,
dialogFade:false,
Expand Down Expand Up @@ -133,7 +134,7 @@ dialogModule.provider("$dialog", function(){
if(self.options.dialogFade){ self.modalEl.addClass(self.options.triggerClass); }
if(self.options.backdropFade){ self.backdropEl.addClass(self.options.triggerClass); }
});

body.addClass(defaults.dialogOpenClass);
self._bindEvents();
});

Expand Down Expand Up @@ -191,7 +192,7 @@ dialogModule.provider("$dialog", function(){
Dialog.prototype._onCloseComplete = function(result) {
this._removeElementsFromDom();
this._unbindEvents();

body.removeClass(defaults.dialogOpenClass);
this.deferred.resolve(result);
};

Expand Down

0 comments on commit d3da8b7

Please sign in to comment.