Skip to content

Commit 2dfc0ae

Browse files
committed
closes spyysalo#14
1 parent cd210de commit 2dfc0ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/local/annodoc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,9 +1333,10 @@ var Annodoc = (function($, window, undefined) {
13331333
url = doc.url;
13341334

13351335
// allow in-document auto-linking destination anchors to
1336-
// pre-empt links to other documents
1336+
// pre-empt links to other documents, and use the "al-doc"
1337+
// class to block this functionality.
13371338
var inDocAnchor = destByCollDoc[coll + '/' + doc.title];
1338-
if (inDocAnchor !== undefined) {
1339+
if (inDocAnchor !== undefined && !e.hasClass('al-doc')) {
13391340
url = '#' + inDocAnchor.id;
13401341
}
13411342

0 commit comments

Comments
 (0)