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

Commit

Permalink
Merge pull request #3065 from sashless/fix/xhtml-compatibility
Browse files Browse the repository at this point in the history
make it useable in xhtml documents
  • Loading branch information
wesleycho committed Mar 31, 2015
2 parents a50f112 + a6b9d53 commit ac6a0f4
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 @@ -280,7 +280,7 @@ angular.module('ui.bootstrap.modal', [])
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);
if (modal.animation) {
angularBackgroundDomEl.attr('modal-animation', 'true');
Expand All @@ -289,7 +289,7 @@ angular.module('ui.bootstrap.modal', [])
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 ac6a0f4

Please sign in to comment.