Skip to content
Snippets Groups Projects
Select Git revision
  • cf4d0361dbf9425a1747fba407e8a4ca13223397
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

mysqli.lib.php

Blame
  • batch.js 995 B
    // $Id: batch.js,v 1.10 2009/08/31 05:51:07 dries Exp $
    (function ($) {
    
    /**
     * Attaches the batch behavior to progress bars.
     */
    Drupal.behaviors.batch = {
      attach: function (context, settings) {
        $('#progress', context).once('batch', function () {
          var holder = $(this);
    
          // Success: redirect to the summary.
          var updateCallback = function (progress, status, pb) {
            if (progress == 100) {
              pb.stopMonitoring();
              window.location = settings.batch.uri + '&op=finished';
            }
          };
    
          var errorCallback = function (pb) {
            holder.prepend($('<p class="error"></p>').html(settings.batch.errorMessage));
            $('#wait').hide();
          };
    
          var progress = new Drupal.progressBar('updateprogress', updateCallback, 'POST', errorCallback);
          progress.setProgress(-1, settings.batch.initMessage);
          holder.append(progress.element);
          progress.startMonitoring(settings.batch.uri + '&op=do', 10);
        });
      }
    };
    
    })(jQuery);