summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-19 14:27:28 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-19 14:27:28 +0000
commit0212f66ff1682ab699830d7571a5ff5ee85aa725 (patch)
tree35399340768065f080c1a43373dfb49ecf71e171 /misc
parent616407465535c128eca2982a961284452fe2a855 (diff)
downloadbrdo-0212f66ff1682ab699830d7571a5ff5ee85aa725.tar.gz
brdo-0212f66ff1682ab699830d7571a5ff5ee85aa725.tar.bz2
- Patch #40677 by Steven: make the updater work again.
Diffstat (limited to 'misc')
-rw-r--r--misc/drupal.js3
-rw-r--r--misc/progress.js2
-rw-r--r--misc/update.js2
3 files changed, 5 insertions, 2 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index f1af13be1..1bc35c757 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -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();
diff --git a/misc/progress.js b/misc/progress.js
index b19cc08db..66013d4e8 100644
--- a/misc/progress.js
+++ b/misc/progress.js
@@ -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, '');
}
/**
diff --git a/misc/update.js b/misc/update.js
index 1b79a74e5..e4358d269 100644
--- a/misc/update.js
+++ b/misc/update.js
@@ -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);