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

jvieille’s picture

Issue summary: View changes

Thanks!
Happily running old D6 with PHP7.2, jquery 1.12.4, Jquery UI 1.10.1