[Plugin: bib3html] Remove problem that bibtex code box will not open
-
i had the problem that the code box containing the bibtex code would not open when i was clinking the little bibtex icon. i figured out that this was caused by a wrong value of the href attribute of the bibtex image’s a element. insted of just the value of the code element (sth. like ‘#40e99364’) it would contain the full url (sth. like https://johannesluderschmidt.de/lang/de/publications#40e99364) which broke the jQuery script behind this link. however, i solved the problem by changing the file js/bib3html.js accordingly:
var $j = jQuery.noConflict(); $j(document).ready(function() { // Toggle Single Bibtex entry $j('a.bibtex_toggle').click(function() { var hrefVal = $j(this).attr("href"); var hashStart = hrefVal.indexOf("#"); hrefVal = hrefVal.substr(hashStart, hrefVal.length); $j(hrefVal).toggle(); return false; }); });
i just remove the rest of the url and take only the anchor link value of the a element.
- The topic ‘[Plugin: bib3html] Remove problem that bibtex code box will not open’ is closed to new replies.