From: Alexander Ebert Date: Wed, 30 Apr 2014 12:12:29 +0000 (+0200) Subject: Some cleanup X-Git-Tag: 2.1.0_Alpha_1~849 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d1813e777e5384224da550b1aa7267ec40f24ca7;p=GitHub%2FWoltLab%2FWCF.git Some cleanup --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index a28a463b3f..39a87f8567 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -1587,18 +1587,12 @@ WCF.ACP.PluginStore.PurchasedItems = { }; WCF.ACP.PluginStore.PurchasedItems.Search = Class.extend({ _dialog: null, _proxy: null, - _wcfMajorReleases: [ ], - init: function(wcfMajorReleases) { + init: function() { this._dialog = null; this._proxy = new WCF.Action.Proxy({ success: $.proxy(this._success, this) }); - this._wcfMajorReleases = wcfMajorReleases; - if (!this._wcfMajorReleases.length) { - console.debug("[WCF.ACP.PluginStore.PurchasedItems.Search] No suitable WCF major releases found, aborting."); - return; - } var $button = $('
  • ' + WCF.Language.get('wcf.acp.pluginstore.purchasedItems.button.search') + '
  • '); $button.prependTo($('.contentNavigation:eq(0) > nav > ul')).click($.proxy(this._click, this)); @@ -1607,10 +1601,7 @@ WCF.ACP.PluginStore.PurchasedItems.Search = Class.extend({ _click: function() { this._proxy.setOption('data', { actionName: 'searchForPurchasedItems', - className: 'wcf\\data\\package\\PackageAction', - parameters: { - wcfMajorReleases: this._wcfMajorReleases - } + className: 'wcf\\data\\package\\PackageAction' }); this._proxy.sendRequest(); }, @@ -1654,8 +1645,7 @@ WCF.ACP.PluginStore.PurchasedItems.Search = Class.extend({ className: 'wcf\\data\\package\\PackageAction', parameters: { password: $('#pluginStorePassword').val(), - username: $('#pluginStoreUsername').val(), - wcfMajorReleases: this._wcfMajorReleases + username: $('#pluginStoreUsername').val() } }); this._proxy.sendRequest(); diff --git a/wcfsetup/install/files/acp/templates/packageList.tpl b/wcfsetup/install/files/acp/templates/packageList.tpl index 5d1b26df23..17bef9a469 100644 --- a/wcfsetup/install/files/acp/templates/packageList.tpl +++ b/wcfsetup/install/files/acp/templates/packageList.tpl @@ -27,7 +27,7 @@ new WCF.ACP.Package.Update.Search(); {/if} - new WCF.ACP.PluginStore.PurchasedItems.Search([ {implode from=$wcfMajorReleases item=wcfMajorRelease}'{$wcfMajorRelease}'{/implode} ]); + new WCF.ACP.PluginStore.PurchasedItems.Search(); }); //]]>