exelearning / iteexe

eXeLearning: Your Free and Open Source Editor to create Educational Resources.
http://exelearning.net
GNU General Public License v2.0
129 stars 47 forks source link

Duplicated scripts when exporting cause JS errors #713

Closed ignaciogros closed 8 months ago

ignaciogros commented 9 months ago

Export a complex content as single page. Some scripts are duplicated (selecciona-activity.js, completa-activity...). That causes a JS error and some activities won't work. Scripts and CSS files should be in HEAD just once.

ignaciogros commented 9 months ago

Example elp: single-page-error.zip

Export as single page to see the error.

See printJavaScriptIdevicesScripts in common.py and addListIdevicesFiles in helper.py

pabloamayab commented 8 months ago

Only need delete duplicates idevices lines in singlepage.py