summaryrefslogtreecommitdiff
path: root/misc/ahah.js
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ahah.js')
-rw-r--r--misc/ahah.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/ahah.js b/misc/ahah.js
index ca5580a46..e2469fe37 100644
--- a/misc/ahah.js
+++ b/misc/ahah.js
@@ -1,4 +1,5 @@
// $Id$
+(function($) {
/**
* Provides AJAX-like page updating via AHAH (Asynchronous HTML and HTTP).
@@ -138,7 +139,7 @@ Drupal.ahah.prototype.beforeSubmit = function (form_values, element, options) {
else if (this.progress.type == 'throbber') {
this.progress.element = $('<div class="ahah-progress ahah-progress-throbber"><div class="throbber">&nbsp;</div></div>');
if (this.progress.message) {
- $('.throbber', this.progress.element).after('<div class="message">' + this.progress.message + '</div>')
+ $('.throbber', this.progress.element).after('<div class="message">' + this.progress.message + '</div>');
}
$(this.element).after(this.progress.element);
}
@@ -225,3 +226,5 @@ Drupal.ahah.prototype.error = function (response, uri) {
// Re-enable the element.
$(this.element).removeClass('progess-disabled').attr('disabled', false);
};
+
+})(jQuery);