MDL-55417 theme_noname: Update mform templates to re-use javascript
authorDamyon Wiese <damyon@moodle.com>
Fri, 12 Aug 2016 03:43:48 +0000 (11:43 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 23 Sep 2016 09:53:30 +0000 (10:53 +0100)
commit4691b2d08e90c5688f2aaf6f0e8b04ae066ca038
tree1f4404ec672b087fe95296219dcfcdbc48670d07
parent344321e1ef968aa1f41a78d6e04eb5b84f04e407
MDL-55417 theme_noname: Update mform templates to re-use javascript

Use an amd module instead of repeating JS in the templates.

Part of MDL-55071
theme/noname/amd/build/form-display-errors.min.js [new file with mode: 0644]
theme/noname/amd/src/form-display-errors.js [new file with mode: 0644]
theme/noname/templates/core_form/element-checkbox-inline.mustache
theme/noname/templates/core_form/element-checkbox.mustache
theme/noname/templates/core_form/element-radio-inline.mustache
theme/noname/templates/core_form/element-radio.mustache
theme/noname/templates/core_form/element-template-inline.mustache
theme/noname/templates/core_form/element-template.mustache