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

Commit ac6a0f4

Browse files
committed
Merge pull request #3065 from sashless/fix/xhtml-compatibility
make it useable in xhtml documents
2 parents a50f112 + a6b9d53 commit ac6a0f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/modal/modal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ angular.module('ui.bootstrap.modal', [])
280280
if (currBackdropIndex >= 0 && !backdropDomEl) {
281281
backdropScope = $rootScope.$new(true);
282282
backdropScope.index = currBackdropIndex;
283-
var angularBackgroundDomEl = angular.element('<div modal-backdrop></div>');
283+
var angularBackgroundDomEl = angular.element('<div modal-backdrop="modal-backdrop"></div>');
284284
angularBackgroundDomEl.attr('backdrop-class', modal.backdropClass);
285285
if (modal.animation) {
286286
angularBackgroundDomEl.attr('modal-animation', 'true');
@@ -289,7 +289,7 @@ angular.module('ui.bootstrap.modal', [])
289289
body.append(backdropDomEl);
290290
}
291291

292-
var angularDomEl = angular.element('<div modal-window></div>');
292+
var angularDomEl = angular.element('<div modal-window="modal-window"></div>');
293293
angularDomEl.attr({
294294
'template-url': modal.windowTemplateUrl,
295295
'window-class': modal.windowClass,

0 commit comments

Comments
 (0)