Fixed moderation button not working on mobile
authorAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2016 11:39:10 +0000 (13:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2016 11:39:10 +0000 (13:39 +0200)
wcfsetup/install/files/js/WCF.Moderation.js

index 1f702a8eac4e70d138b0285987201957d0052efe..f33ae7c5628afd3b7ab6aa5ec7a29a4758d9ed53 100644 (file)
@@ -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));
        },
        
        /**