rem: updateCallback = function (progress, status, pb) { 
add:  var updateCallback = function (progress, status, pb) { 
context:   addLoadEvent(function() {    if ($('edit-has_js')) {      $('edit-has_js').value = 1;    }    if ($('progress')) {      updateCallback = function (progress, status, pb) {        if (progress == 100) {          pb.stopMonitoring();          window.location = window.location.href.split('op=')[0] +'op=finished';        }      }      errorCallback = function (pb) {        window.location = window.location.href.split('op=')[0] +'op=error';      }      var progress = new progressBar('updateprogress', updateCallback, HTTPPost, errorCallback);      progress.setProgress(-1, 'Starting updates');      $('progress').appendChild(progress.element);      progress.startMonitoring('update.php?op=do_update', 0);    }  });
meta: 639	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/639/cb49e19e9ed2e90a4ece7a5479a4f6e3d342925f/update.js/buggy/misc/update.js