From: Marcel Werk Date: Tue, 8 Nov 2011 18:56:54 +0000 (+0100) Subject: Added additional parameters for the collapsible function X-Git-Tag: 2.0.0_Beta_1~1617 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88a85f47fb27f390814ad641f7177c4792e7362e;p=GitHub%2FWoltLab%2FWCF.git Added additional parameters for the collapsible function --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 850c6a0486..78ce968fae 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2539,12 +2539,12 @@ WCF.Collapsible.Remote = Class.extend({ this._proxy.setOption('data', { actionName: 'toggleContainer', className: this._className, - parameters: { + parameters: $.extend(true, { containerID: $containerID, currentState: $state, newState: $newState, objectID: this._getObjectID($containerID) - } + }, this._getAdditionalParameters($containerID)) }); this._proxy.sendRequest(); @@ -2568,6 +2568,16 @@ WCF.Collapsible.Remote = Class.extend({ */ _getObjectID: function(containerID) { }, + /** + * Returns additional parameters. + * + * @param integer containerID + * @return object + */ + _getAdditionalParameters: function(containerID) { + return {}; + }, + /** * Sets content upon successfull AJAX request. *