From f73e3dcb97a74d752ecef55f5d4f05bedf3d88cb Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 2 Feb 2009 19:04:57 +0100 Subject: correctly strip footnote marker from popup note FS#1584 Ignore-this: 3858b6ec18bc178597d098dfb96001b darcs-hash:20090202180457-7ad00-f3d5344732acd4cc90ee08d120431e9fd88dab57.gz --- lib/scripts/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/scripts') diff --git a/lib/scripts/script.js b/lib/scripts/script.js index 5f868c172..2421f3577 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -316,7 +316,7 @@ function footnote(e){ var content = new String (a.parentNode.parentNode.innerHTML); // strip the leading content anchors and their comma separators - content = content.replace(//gi, ''); + content = content.replace(/.*<\/sup>/gi, ''); content = content.replace(/^\s+(,\s+)+/,''); // prefix ids on any elements with "insitu__" to ensure they remain unique -- cgit v1.2.3