// initialize AJAX-based dialog
WCF.showAJAXDialog(this._dialogID, true, {
- ajax: {
- url: 'index.php/WorkerProxy/?t=' + SECURITY_TOKEN + SID_ARG_2ND,
- type: 'POST',
- data: {
- className: className,
- parameters: options
- },
- success: $.proxy(this._handleResponse, this)
+ url: 'index.php/WorkerProxy/?t=' + SECURITY_TOKEN + SID_ARG_2ND,
+ type: 'POST',
+ data: {
+ className: className,
+ parameters: options
},
+ success: $.proxy(this._handleResponse, this),
+
preventClose: true,
hideTitle: true
});
/**
* Handles response from server.
*/
- _handleResponse: function() {
+ _handleResponse: function($data) {
// init binding
if (this._dialog === null) {
this._dialog = $('#' + $.wcfEscapeID(this._dialogID));
}
- // fetch data returned by server response
- var $data = this._dialog.data('responseData');
-
// update progress
this._dialog.find('#workerProgress').attr('value', $data.progress).text($data.progress + '%');
loopCount: $data.loopCount,
parameters: $data.parameters
},
- success: $.proxy(function(data) {
- this._dialog.data('responseData', data);
- this._handleResponse();
- }, this),
+ success: $.proxy(this._handleResponse, this),
error: function(transport) {
alert(transport.responseText);
}
<div id="workerContainer">
- <header>
- <img src="{@$__wcf->getPath()}icon/working.svg" alt="" class="wcf-containerIcon" />
+ <header class="box48 boxHeadline">
+ <img src="{@$__wcf->getPath()}icon/working.svg" alt="" class="icon48" />
<hgroup class="wcf-containerIcon">
<h1>Aufgaben werden ausgeführt …</h1><!--ToDo: Language variables -->
<h2>Aktueller Schritt: <span id="workerAction">{lang}wcf.package.installation.step.prepare{/lang}</span></h2>
}
var dialogOptions = arguments[2] || {};
+ dialogOptions.ajax = true;
+
dialog.wcfDialog(dialogOptions);
-
+
return dialog;
},
if (this.options.closeButtonLabel === null) {
this.options.closeButtonLabel = WCF.Language.get('wcf.global.close');
}
-
+
if (this.options.ajax) {
new WCF.Action.Proxy({
autoSend: true,