From 88a85f47fb27f390814ad641f7177c4792e7362e Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 8 Nov 2011 19:56:54 +0100 Subject: [PATCH] Added additional parameters for the collapsible function --- wcfsetup/install/files/js/WCF.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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. * -- 2.20.1