I was growing tired of having to press submit each time I changed theme so I added an onchange form submit. This seems like the cleanest way since there is no JS file added by the module.

Patch attached.

CommentFileSizeAuthor
switchtheme.onchange-submit.patch555 bytespsynaptic

Comments

3nd3rth3’s picture

Great patch! The only thing I'd change is that if you are doing it manually like I did, you should erase the last line as well. If you don't, it'll keep rendering the "Submit" button.

sun’s picture

Status: Active » Closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #265169: Auto-Switch, possible?. You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.