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 @@ ...@@ -102,7 +102,7 @@
// No idea what it is for now // No idea what it is for now
// Get the comment // Get the comment
details = slide.querySelector(':scope > details'); details = slide.querySelector(':scope > details:last-child');
if (details !== null) { if (details !== null) {
result.comment_html = details.innerHTML; result.comment_html = details.innerHTML;
slide.removeChild(details); slide.removeChild(details);
...@@ -169,8 +169,8 @@ ...@@ -169,8 +169,8 @@
} }
slide.innerHTML = '<h1>' + slide_dict.title_html + '</h1>' + slide.innerHTML = '<h1>' + slide_dict.title_html + '</h1>' +
img + 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); 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