Added additional parameters for the collapsible function
authorMarcel Werk <burntime@woltlab.com>
Tue, 8 Nov 2011 18:56:54 +0000 (19:56 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 8 Nov 2011 18:56:54 +0000 (19:56 +0100)
wcfsetup/install/files/js/WCF.js

index 850c6a0486be56353dced3d22ed773780d6e220c..78ce968fae7c7fb6d3342827c3787c28ea68eb85 100644 (file)
@@ -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.
         *