Skip to content

feat: makes all javascript-generated markup themeable

This includes a few housekeeping tasks:

  • make the js file into a Drupal behavior (Drupal.theme() functions are not otherwise overridable, afaict)
  • adds Drupal.theme.*() functions for all js html-generation
  • tidies up an unnecessary variable reassignment
  • uses an unused existing variable
  • bases click handler on once() (DOM manipulation in Drupal is risky without this, though jQuery is protective)
  • removes label element markup from Yes/No buttons in block plugin since buttons are their own labels

Closes #3522244

Edited by Christopher Torgalson

Merge request reports

Loading