citation contents

This commit is contained in:
Christopher Olah
2017-01-11 13:48:30 -08:00
parent 548037bbe2
commit 3e61d836ea
3 changed files with 7 additions and 11 deletions
+3 -1
View File
@@ -19,7 +19,9 @@ export default function(dom, data) {
cite_hover_str += hover_cite(data.bibliography[key]);
});
cite_hover_str = cite_hover_str.replace(/"/g, "'")
el.innerHTML = `<span id="citation-${n}" class="citation" data-hover="${cite_hover_str}">${cite_string}</span>`;
var orig_string = el.innerHTML;
if (orig_string != "") orig_string += " ";
el.innerHTML = `<span id="citation-${n}" class="citation" data-hover="${cite_hover_str}">${orig_string}${cite_string}</span>`;
}
});