Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 3a420aa

Browse files
committed
Removing last backdrop code based on @TomMalbran's feedback.
1 parent 352d544 commit 3a420aa

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/widgets/Dialogs.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ define(function (require, exports, module) {
295295

296296
// Remove the dialog instance from the DOM.
297297
$dlg.remove();
298-
$(".modal-backdrop:last").addClass("last-backdrop");
299298

300299
// Remove our global keydown handler.
301300
KeyBindingManager.removeGlobalKeydownHook(keydownHook);
@@ -318,9 +317,7 @@ define(function (require, exports, module) {
318317
$dlg.one("click", ".dialog-button", function (e) {
319318
_processButton($dlg, $(this).attr("data-button-id"), autoDismiss);
320319
});
321-
322-
$(".last-backdrop").removeClass("last-backdrop");
323-
320+
324321
// Run the dialog
325322
$dlg
326323
.modal({
@@ -333,7 +330,6 @@ define(function (require, exports, module) {
333330
.css("z-index", zIndex + 1)
334331
.next()
335332
.css("z-index", zIndex)
336-
.addClass("last-backdrop");
337333

338334
zIndex += 2;
339335

0 commit comments

Comments
 (0)