From ca6c2648237080a49bf11e3288aa25e2379b9d5f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 12 Aug 2022 13:38:46 +0200 Subject: [PATCH] Remove obsolete code --- ts/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.ts | 2 -- .../files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ts/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.ts b/ts/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.ts index 5e6d6eac0e..dc0fdfd9b4 100644 --- a/ts/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.ts +++ b/ts/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.ts @@ -10,7 +10,6 @@ import * as Ajax from "../../Ajax"; import { AjaxCallbackObject, AjaxCallbackSetup } from "../../Ajax/Data"; -import * as EventHandler from "../../Event/Handler"; import * as UiNotification from "../Notification"; class UiArticleMarkAllAsRead implements AjaxCallbackObject { @@ -38,7 +37,6 @@ class UiArticleMarkAllAsRead implements AjaxCallbackObject { // article list document.querySelectorAll(".contentItemList .contentItemBadgeNew").forEach((el) => el.remove()); - EventHandler.fire("com.woltlab.wcf.MainMenuMobile", "updateButtonState"); UiNotification.show(); } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js index 439a97d71c..170a52b5cc 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js @@ -7,12 +7,11 @@ * @module WoltLabSuite/Core/Ui/Article/MarkAllAsRead * @woltlabExcludeBundle tiny */ -define(["require", "exports", "tslib", "../../Ajax", "../../Event/Handler", "../Notification"], function (require, exports, tslib_1, Ajax, EventHandler, UiNotification) { +define(["require", "exports", "tslib", "../../Ajax", "../Notification"], function (require, exports, tslib_1, Ajax, UiNotification) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; Ajax = tslib_1.__importStar(Ajax); - EventHandler = tslib_1.__importStar(EventHandler); UiNotification = tslib_1.__importStar(UiNotification); class UiArticleMarkAllAsRead { constructor() { @@ -35,7 +34,6 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Event/Handler", "../ }); // article list document.querySelectorAll(".contentItemList .contentItemBadgeNew").forEach((el) => el.remove()); - EventHandler.fire("com.woltlab.wcf.MainMenuMobile", "updateButtonState"); UiNotification.show(); } _ajaxSetup() { -- 2.20.1