* @param integer queueID
* @param string actionName
* @param boolean allowRollback
+ * @param boolean isUpdate
*/
- init: function(queueID, actionName, allowRollback) {
+ init: function(queueID, actionName, allowRollback, isUpdate) {
this._actionName = (actionName) ? actionName : 'InstallPackage';
if (this._actionName === 'Setup') {
// 'Setup' is an alias for 'InstallPackage' used during WCFSetup
switch (this._actionName) {
case 'InstallPackage':
- if (allowRollback || actionName === 'Setup') {
- this._dialogTitle = 'wcf.acp.package.installation.title';
+ if (isUpdate) {
+ this._dialogTitle = 'wcf.acp.package.update.title';
}
else {
- this._dialogTitle = 'wcf.acp.package.update.title';
+ this._dialogTitle = 'wcf.acp.package.installation.title';
}
break;
this._dialog.wcfDialog('close');
}
- var $installation = new WCF.ACP.Package.Installation(data.returnValues.queueID, undefined, false);
+ var $installation = new WCF.ACP.Package.Installation(data.returnValues.queueID, undefined, false, true);
$installation.prepareInstallation();
}
else if (data.returnValues.template) {
'wcf.acp.package.uninstallation.title': '{lang}wcf.acp.package.uninstallation.title{/lang}',
'wcf.acp.package.update.title': '{lang}wcf.acp.package.update.title{/lang}'
});
- new WCF.ACP.Package.Installation({@$queue->queueID}, undefined, {if $queue->action == 'install'}true{else}false{/if});
+ new WCF.ACP.Package.Installation({@$queue->queueID}, undefined, {if $queue->action == 'install'}true, false{else}false, true{/if});
});
//]]>
</script>