Commit 5d12e4a4 authored by Romain Courteaud's avatar Romain Courteaud

erp5_run_my_doc: store the comment at the end of the slide section

parent a68371d0
......@@ -102,7 +102,7 @@
// No idea what it is for now
// Get the comment
details = slide.querySelector(':scope > details');
details = slide.querySelector(':scope > details:last-child');
if (details !== null) {
result.comment_html = details.innerHTML;
slide.removeChild(details);
......@@ -169,8 +169,8 @@
}
slide.innerHTML = '<h1>' + slide_dict.title_html + '</h1>' +
img +
'<details>' + slide_dict.comment_html + '</details>' +
slide_dict.slide_html;
slide_dict.slide_html +
'<details>' + slide_dict.comment_html + '</details>';
return slideListAsHTML(slide_list);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment