From 14d19b22cac31ac457d2cba01130d4bd4c80588e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 25 Oct 2010 00:23:47 +0000 Subject: - Patch #647228 by sun: links are needlessly unable to fully participate in D7 AJAX framework features. --- misc/ajax.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc') 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; -- cgit v1.2.3