Commit 0212f66f authored by Dries's avatar Dries
Browse files

- Patch #40677 by Steven: make the updater work again.

parent 61640746
......@@ -66,6 +66,9 @@ function HTTPGet(uri, callbackFunction, callbackParameter) {
/**
* Creates an HTTP POST request and sends the response to the callback function
*
* Note: passing null or undefined for 'object' makes the request fail in Opera.
* Pass an empty string instead, if you must.
*/
function HTTPPost(uri, callbackFunction, callbackParameter, object) {
var xmlHttp = new XMLHttpRequest();
......
......@@ -69,7 +69,7 @@ progressBar.prototype.sendPing = function () {
if (this.timer) {
clearTimeout(this.timer);
}
this.method(this.uri, this.receivePing, this);
this.method(this.uri, this.receivePing, this, '');
}
/**
......
......@@ -11,7 +11,7 @@ if (isJsEnabled()) {
}
}
this.progress = new progressBar('updateprogress', updateCallback, HTTPGet);
this.progress = new progressBar('updateprogress', updateCallback, HTTPPost);
this.progress.setProgress(-1, 'Starting updates...');
$('progress').appendChild(this.progress.element);
this.progress.startMonitoring('update.php?op=do_update', 0);
......
......@@ -308,7 +308,8 @@ function update_selection_page() {
$form['has_js'] = array(
'#type' => 'hidden',
'#default_value' => FALSE
'#default_value' => FALSE,
'#attributes' => array('id' => 'edit-has_js')
);
$form['submit'] = array(
'#type' => 'submit',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment