* Initializes the package installation.
*/
_init: function() {
- $('#submitButton').click($.proxy(this._prepareInstallation, this));
+ $('#submitButton').click($.proxy(this.prepareInstallation, this));
},
/**
/**
* Prepares installation dialog.
*/
- _prepareInstallation: function() {
+ prepareInstallation: function() {
WCF.showAJAXDialog('packageInstallationDialog', true, {
ajax: true,
closable: false,
var self = this;
$('#packageInstallationInnerContent').html(data.innerTemplate).find('input').keyup(function(event) {
if (event.keyCode === 13) { // Enter
- self._submitDialog(data);
+ self._submit(data);
}
});
*
* @param object data
*/
- _submitDialog: function(data) {
+ _submit: function(data) {
// collect form values
var $additionalData = {};
$('#packageInstallationInnerContent input').each(function(index, inputElement) {
WCF.System.Confirmation.show($element.data('confirmMessage'), function(action) {
if (action === 'confirm') {
self._packageID = $element.data('objectID');
- self._prepareInstallation();
+ self.prepareInstallation();
}
});
},
$(function() {
WCF.Language.add('wcf.acp.package.installation.title', '{lang}wcf.acp.package.installation.title{/lang}');
- var $installation = new WCF.ACP.Package.Installation('install', {@$queueID}, false);
+ var $installation = new WCF.ACP.Package.Installation({@$queueID});
$installation.prepareInstallation();
});
//]]>