From 83e08f14b1255e612addfa405e3b72bad42436ab Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 17 Aug 2016 13:39:10 +0200 Subject: [PATCH] Fixed moderation button not working on mobile --- wcfsetup/install/files/js/WCF.Moderation.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.Moderation.js b/wcfsetup/install/files/js/WCF.Moderation.js index 1f702a8eac..f33ae7c562 100644 --- a/wcfsetup/install/files/js/WCF.Moderation.js +++ b/wcfsetup/install/files/js/WCF.Moderation.js @@ -626,6 +626,14 @@ WCF.User.Panel.Moderation = WCF.User.Panel.Abstract.extend({ options.enableMarkAsRead = true; this._super($('#outstandingModeration'), 'outstandingModeration', options); + + require(['EventHandler'], (function(EventHandler) { + EventHandler.add('com.woltlab.wcf.UserMenuMobile', 'more', (function(data) { + if (data.identifier === 'com.woltlab.wcf.moderation') { + this.toggle(); + } + }).bind(this)); + }).bind(this)); }, /** -- 2.20.1