diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-05-07 10:15:57 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-05-07 10:15:57 +0000 |
commit | a0caf140529ac5f378b890bff5ff959733babd65 (patch) | |
tree | 88399c722397a566630dbb9871b2c2539dc77776 /misc | |
parent | 9003e7590fe22a07f3f0bd5425f9d02280e3bde0 (diff) | |
download | brdo-a0caf140529ac5f378b890bff5ff959733babd65.tar.gz brdo-a0caf140529ac5f378b890bff5ff959733babd65.tar.bz2 |
#127539 by yched: simplify developer docs about the finished value and fix an URL placeholder
Diffstat (limited to 'misc')
-rw-r--r-- | misc/update.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/misc/update.js b/misc/update.js deleted file mode 100644 index 66f7d4e9a..000000000 --- a/misc/update.js +++ /dev/null @@ -1,32 +0,0 @@ -// $Id$ - -if (Drupal.jsEnabled) { - $(document).ready(function() { - $('#edit-has-js').each(function() { this.value = 1; }); - $('#progress').each(function () { - var holder = this; - - // Success: redirect to the summary. - var updateCallback = function (progress, status, pb) { - if (progress == 100) { - pb.stopMonitoring(); - window.location = window.location.href.split('op=')[0] +'op=finished'; - } - } - - // Failure: point out error message and provide link to the summary. - var errorCallback = function (pb) { - var div = document.createElement('p'); - div.className = 'error'; - $(div).html('An unrecoverable error has occured. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the <a href="update.php?op=error">update summary</a>'); - $(holder).prepend(div); - $('#wait').hide(); - } - - var progress = new Drupal.progressBar('updateprogress', updateCallback, "POST", errorCallback); - progress.setProgress(-1, 'Starting updates'); - $(holder).append(progress.element); - progress.startMonitoring('update.php?op=do_update', 0); - }); - }); -} |