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.
A little bit of helper javascript would improve usability quite a bit here:
(function ($) {
/**
* Custom behaviors for SwitchTheme.
*/
Drupal.behaviors.switchTheme = {
attach: function (context) {
// Hide the submit button, and trigger form submit when new theme is
// selected from drop-down.
$('.switchtheme-switch-form', context).once('autosubmit', function () {
$('.form-actions', $(this)).hide();
$('.form-select', $(this)).change(function () {
this.form.submit();
});
});
}
};
})(jQuery);
Comment | File | Size | Author |
---|---|---|---|
#1 | switchtheme-autosubmit-on-select-2304331.patch | 1.14 KB | jwilson3 |
Comments
Comment #1
jwilson3