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

Commit

Permalink
make it useable in xhtml documents
Browse files Browse the repository at this point in the history
  • Loading branch information
sashless committed Dec 8, 2014
1 parent eec68d8 commit a6b9d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
if (currBackdropIndex >= 0 && !backdropDomEl) {
backdropScope = $rootScope.$new(true);
backdropScope.index = currBackdropIndex;
var angularBackgroundDomEl = angular.element('<div modal-backdrop></div>');
var angularBackgroundDomEl = angular.element('<div modal-backdrop="modal-backdrop"></div>');
angularBackgroundDomEl.attr('backdrop-class', modal.backdropClass);
backdropDomEl = $compile(angularBackgroundDomEl)(backdropScope);
body.append(backdropDomEl);
}

var angularDomEl = angular.element('<div modal-window></div>');
var angularDomEl = angular.element('<div modal-window="modal-window"></div>');
angularDomEl.attr({
'template-url': modal.windowTemplateUrl,
'window-class': modal.windowClass,
Expand Down

0 comments on commit a6b9d53

Please sign in to comment.