Changes the way WCF.Collapsible.Remote handles AJAX-objectIDs
authorMatthias Schmidt <gravatronics@live.com>
Sun, 25 Dec 2011 19:44:41 +0000 (20:44 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 25 Dec 2011 19:44:41 +0000 (20:44 +0100)
Now, the default objectIDs property of the `AbstractDatabaseObject` class is used instead of a new parameter, which makes it easier reading the relevant objects without having to set the object ID(s) manually.

wcfsetup/install/files/js/WCF.js

index 5f0d94271171a96708abcaafc70f327784871ec5..e07b89d98108daedf6aafd4dae28c93530ee6506 100644 (file)
@@ -2560,11 +2560,11 @@ WCF.Collapsible.Remote = Class.extend({
                this._proxy.setOption('data', {
                        actionName: 'toggleContainer',
                        className: this._className,
+                       objectIDs: [this._getObjectID($containerID)],
                        parameters: $.extend(true, {
                                containerID: $containerID,
                                currentState: $state,
-                               newState: $newState,
-                               objectID: this._getObjectID($containerID)
+                               newState: $newState
                        }, this._getAdditionalParameters($containerID))
                });
                this._proxy.sendRequest();