Skip to content

Commit 70f688b

Browse files
committed
Fix the insert location of the AJAX spinner
See https://www.woltlab.com/community/thread/310489-spinner-hinter-dialog/
1 parent 1355621 commit 70f688b

File tree

2 files changed

+5
-3
lines changed
  • ts/WoltLabSuite/Core/Ajax
  • wcfsetup/install/files/js/WoltLabSuite/Core/Ajax

2 files changed

+5
-3
lines changed

ts/WoltLabSuite/Core/Ajax/Status.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
77
*/
88

9+
import { getPageOverlayContainer } from "../Helper/PageOverlay";
10+
911
class AjaxStatus {
1012
private _activeRequests = 0;
1113
private readonly _overlay: Element;
@@ -20,7 +22,7 @@ class AjaxStatus {
2022
loadingIndicator.size = 48;
2123
this._overlay.append(loadingIndicator);
2224

23-
document.body.append(this._overlay);
25+
getPageOverlayContainer().append(this._overlay);
2426
}
2527

2628
show(): void {

wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Status.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)