*/
prepareInstallation: function() {
var $dialog = WCF.showAJAXDialog('packageInstallationDialog', true, {
+ ajax: true,
url: 'index.php/' + this._actionName + '/?t=' + SECURITY_TOKEN + SID_ARG_2ND,
data: { queueID: this._queueID, step: 'prepare' },
success: $.proxy(this._handleResponse, this),
preventClose: true,
hideTitle: true
});
-
+
this._api = $dialog.data('wcfDialog');
},
* @param string textStatus
* @param jQuery jqXHR
*/
- _handleResponse: function(data. textStatus, jqXHR) {
+ _handleResponse: function(data, textStatus, jqXHR) {
if (this._dialog == null) {
this._dialog = $('#packageInstallationDialog');
}
/**
* Shows a modal dialog.
+ *
* @param string dialogID
* @param boolean moveToBody
*/
var $editor = data.items[$typeName];
var $label = $('<li><span>' + $editor.label + '</span></li>').appendTo($list).click(function(event) {
- $(event.target).next().toggle();
+ $(event.target).next().toggleClass('open');
});
var $itemList = $('<ol></ol>').appendTo($label).hide();