moodle-tool_pluginskel icon indicating copy to clipboard operation
moodle-tool_pluginskel copied to clipboard

Add more ... buttons do not work with the Boost theme

Open mudrd8mz opened this issue 7 years ago • 2 comments

The addmore.js has some presumptions on how the actual form HTML looks like when trying to duplicate the fields. However, these presumptions work with the Clean themes only. In Boost, the form HTML has different structure and the buttons do not work at all.

mudrd8mz avatar Nov 30 '17 16:11 mudrd8mz

I think the problem comes from the fact that the javascript parses the DOM to get the elements that it needs to duplicate.

I think the best way to fix this is to do a rewrite of the web interface by using mustache templates. This way you have more control over the element names and the html structure and you can generate the javascript code that manipulates the DOM at the same time with the html code.

alexandru-elisei avatar Apr 13 '18 06:04 alexandru-elisei

I agree.

mudrd8mz avatar Apr 13 '18 06:04 mudrd8mz