summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-25 00:23:47 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-25 00:23:47 +0000
commit14d19b22cac31ac457d2cba01130d4bd4c80588e (patch)
treef8e4deffa31fc3ecadd1937ba88723bfe7e7163b /misc
parente6385ee624b4d0399f96ae759450845bac4deeec (diff)
downloadbrdo-14d19b22cac31ac457d2cba01130d4bd4c80588e.tar.gz
brdo-14d19b22cac31ac457d2cba01130d4bd4c80588e.tar.bz2
- Patch #647228 by sun: links are needlessly unable to fully participate in D7 AJAX framework features.
Diffstat (limited to 'misc')
-rw-r--r--misc/ajax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/ajax.js b/misc/ajax.js
index ade1f7029..73848602f 100644
--- a/misc/ajax.js
+++ b/misc/ajax.js
@@ -280,7 +280,7 @@ Drupal.ajax.prototype.success = function (response, status) {
if (this.progress.object) {
this.progress.object.stopMonitoring();
}
- $(this.element).removeClass('progress-disabled').attr('disabled', false);
+ $(this.element).removeClass('progress-disabled').removeAttr('disabled');
Drupal.freezeHeight();
@@ -348,7 +348,7 @@ Drupal.ajax.prototype.error = function (response, uri) {
// Undo hide.
$(this.wrapper).show();
// Re-enable the element.
- $(this.element).removeClass('progress-disabled').attr('disabled', false);
+ $(this.element).removeClass('progress-disabled').removeAttr('disabled');
// Reattach behaviors, if they were detached in beforeSerialize().
if (this.form) {
var settings = response.settings || this.settings || Drupal.settings;