From: philipp Date: Sun, 3 Nov 2013 22:22:28 +0000 (+0000) Subject: Avoid double links to sledrun wiki pages. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/mediawiki_extensions/wrmap.git/commitdiff_plain/97986826a9dc61645fb96e7d5c72a88e4cccd88d Avoid double links to sledrun wiki pages. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrmap/trunk@1788 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- diff --git a/wrmap.js b/wrmap.js index e7142c5..37f8208 100644 --- a/wrmap.js +++ b/wrmap.js @@ -252,7 +252,7 @@ function init_wrmap(i, jq_map) { } // wiki link - if (attr.wiki !== undefined) { + if (attr.wiki !== undefined && attr.type !== 'sledrun') { var a = appendElement(appendElement(popup_div, 'p'), 'a', {'href': attr.wiki}); if (attr.thumb_url === undefined) a.text('Details'); else a.append(createElement('img', {'src': attr.thumb_url, 'alt': 'Details'}));