Fixed 'Purchased Items' button appended two times
authorAlexander Ebert <ebert@woltlab.com>
Mon, 29 Dec 2014 13:40:34 +0000 (14:40 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 29 Dec 2014 13:40:34 +0000 (14:40 +0100)
wcfsetup/install/files/acp/js/WCF.ACP.js

index ec3f849708375f56dbdce00a9d1d558ce0b43757..ce219c0c9e5eb103883b129ae63448d44de7b6c8 100644 (file)
@@ -1629,7 +1629,7 @@ WCF.ACP.PluginStore.PurchasedItems.Search = Class.extend({
                });
                
                var $button = $('<li><a class="button"><span class="icon icon16 fa-shopping-cart" /> <span>' + WCF.Language.get('wcf.acp.pluginStore.purchasedItems.button.search') + '</span></a></li>');
-               $button.prependTo($('.contentNavigation:eq(0) > nav > ul')).click($.proxy(this._click, this));
+               $button.prependTo($('.contentNavigation:eq(0) > nav:not(.pageNavigation) > ul')).click($.proxy(this._click, this));
        },
        
        /**