From: Alexander Ebert Date: Mon, 29 May 2023 12:48:48 +0000 (+0200) Subject: Suppress error messages when fetching previews X-Git-Tag: 6.0.0_Alpha_1~63 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=177e794fc9e8e7c60ca82b8dbe0d25b308db72bb;p=GitHub%2FWoltLab%2FWCF.git Suppress error messages when fetching previews See https://www.woltlab.com/community/thread/299874-suppress-errors-if-requests-for-the-popover-fail/ --- diff --git a/ts/WoltLabSuite/Core/Controller/Popover.ts b/ts/WoltLabSuite/Core/Controller/Popover.ts index 340bd0e748..7a20165e9f 100644 --- a/ts/WoltLabSuite/Core/Controller/Popover.ts +++ b/ts/WoltLabSuite/Core/Controller/Popover.ts @@ -426,6 +426,7 @@ class ControllerPopover implements AjaxCallbackObject { _ajaxSetup(): ReturnType { return { + ignoreError: true, silent: true, }; } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js index f35e7d832d..4b9df5d1cc 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js @@ -316,6 +316,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../ } _ajaxSetup() { return { + ignoreError: true, silent: true, }; }