From a0caf140529ac5f378b890bff5ff959733babd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 7 May 2007 10:15:57 +0000 Subject: #127539 by yched: simplify developer docs about the finished value and fix an URL placeholder --- misc/update.js | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 misc/update.js (limited to 'misc/update.js') 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 update summary'); - $(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); - }); - }); -} -- cgit v1.2.3