From: Alexander Ebert Date: Wed, 17 Aug 2016 11:39:10 +0000 (+0200) Subject: Fixed moderation button not working on mobile X-Git-Tag: 3.0.0_Beta_1~708 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=83e08f14b1255e612addfa405e3b72bad42436ab;p=GitHub%2FWoltLab%2FWCF.git Fixed moderation button not working on mobile --- 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)); }, /**