if (!ajaxenabled()) { //return false; }code in there was commented out.
However I just noticed that in print_header, there was another check like that which meant that:
- If you call require_js before print_header, your js isn't included.
- If you call it afterwards, your js is included.
if (!ajaxenabled())Check in print_header. I hope that is OK with everyone. If anyone wants to revert this, you will break the quiz, and probably other places too.