* Provides the package installation.
*
* @param integer queueID
+ * @param string actionName
*/
WCF.ACP.Package.Installation = Class.extend({
/**
* Initializes the WCF.ACP.Package.Installation class.
*
* @param integer queueID
+ * @param string actionName
*/
- init: function(queueID) {
- this._actionName = 'InstallPackage';
+ init: function(queueID, actionName) {
+ this._actionName = (actionName) ? actionName : 'InstallPackage';
this._queueID = queueID;
this._proxy = new WCF.Action.Proxy({
* @param jQuery elements
*/
init: function(elements) {
- this._actionName = 'UninstallPackage';
this._elements = elements;
this._packageID = 0;
if (this._elements.length) {
- this._super(0);
+ this._super(0, 'UninstallPackage');
}
},