From cc2e090c96b143f066b2ba62d75234b32d704196 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 29 Feb 2024 18:48:48 +0800 Subject: [PATCH] bugfix --- bricks/message.js | 4 ++-- bricks/modal.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bricks/message.js b/bricks/message.js index f5b511a..3e434f5 100644 --- a/bricks/message.js +++ b/bricks/message.js @@ -105,6 +105,6 @@ bricks.PopupForm = class extends bricks.BPopup { this.dismiss(); } } -bricks.Factory.register('BMessage', bricks.BMessage); -bricks.Factory.register('BError', bricks.BError); +bricks.Factory.register('Message', bricks.BMessage); +bricks.Factory.register('Error', bricks.BError); bricks.Factory.register('PopupForm', bricks.PopupForm); diff --git a/bricks/modal.js b/bricks/modal.js index ace60c6..6c7a122 100755 --- a/bricks/modal.js +++ b/bricks/modal.js @@ -44,7 +44,7 @@ bricks.Modal = class extends bricks.Layout { var e = document.createElement('div'); e.style.display = "none"; /* Hidden by default */ e.style.position = "fixed"; /* Stay in place */ - e.style.zIndex = objget(this.opts, 'org_index', 0) + 1; /* Sit on top */ + e.style.zIndex = objget(this.opts, 'org_index', 0) + 5000; /* Sit on top */ e.style.paddingTop = "100px"; /* Location of the box */ e.style.left = 0; e.style.top = 0;