Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using the jQuery update module, the code in content.js
$(this)
.html(html)
.attr('disabled', disabled ? 'disabled' : '');
This will always disable the widget.
The code needed is:
$(this).html(html);
if (disabled == true) {
$(this).attr('disabled', 'disabled');
}
else {
$(this).removeAttr('disabled');
}
Comments
Comment #1
jvieille CreditAttribution: jvieille commentedThanks!
Happily running old D6 with PHP7.2, jquery 1.12.4, Jquery UI 1.10.1