summaryrefslogtreecommitdiff
path: root/misc/batch.js
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-27 20:19:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-27 20:19:38 +0000
commitfc7283235bb9e5ae4300714d03c0bf3723f4792b (patch)
tree0dc443ba5dc1f74fbfc5ad5762c7c7a556232b73 /misc/batch.js
parent031ba7d66533b3bb6e1ceb1cc834e9af9b1a3c71 (diff)
downloadbrdo-fc7283235bb9e5ae4300714d03c0bf3723f4792b.tar.gz
brdo-fc7283235bb9e5ae4300714d03c0bf3723f4792b.tar.bz2
#444402 follow-up by kkaefer: Fix autocomplete, enforce code style for anonymous JS functions.
Diffstat (limited to 'misc/batch.js')
-rw-r--r--misc/batch.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/misc/batch.js b/misc/batch.js
index fc334617d..8e53c210a 100644
--- a/misc/batch.js
+++ b/misc/batch.js
@@ -1,27 +1,27 @@
// $Id$
-(function($) {
+(function ($) {
/**
* Attaches the batch behavior to progress bars.
*/
Drupal.behaviors.batch = {
- attach: function(context, settings) {
+ attach: function (context, settings) {
// This behavior attaches by ID, so is only valid once on a page.
if ($('#progress.batch-processed').size()) {
return;
}
- $('#progress', context).addClass('batch-processed').each(function() {
+ $('#progress', context).addClass('batch-processed').each(function () {
var holder = $(this);
// Success: redirect to the summary.
- var updateCallback = function(progress, status, pb) {
+ var updateCallback = function (progress, status, pb) {
if (progress == 100) {
pb.stopMonitoring();
window.location = settings.batch.uri + '&op=finished';
}
};
- var errorCallback = function(pb) {
+ var errorCallback = function (pb) {
holder.prepend($('<p class="error"></p>').html(settings.batch.errorMessage));
$('#wait').hide();
};