From: philipp Date: Mon, 4 Nov 2013 22:51:12 +0000 (+0000) Subject: Removed the ul element from the sledrun info box. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/mediawiki_extensions/wrmap.git/commitdiff_plain/310084e4c888fed6a6a83815e28175adc1c5f010 Removed the ul element from the sledrun info box. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrmap/trunk@1795 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- diff --git a/wrmap.js b/wrmap.js index 7cb0b3a..51ea34d 100644 --- a/wrmap.js +++ b/wrmap.js @@ -240,16 +240,15 @@ function init_wrmap(i, jq_map) { // sledrun information if (attr.type == 'sledrun') { - var ul = appendElement(popup_div, 'ul'); - var li = appendElement(ul, 'li').text('Rodelbahnzustand').append(createElement('br')); + var p = appendElement(popup_div, 'p').text('Rodelbahnzustand').append(createElement('br')); if (attr.condition !== undefined) { var condition_text = {1: 'Sehr gut', 2: 'Gut', 3: 'Mittelmäßig', 4: 'Schlecht', 5: 'Geht nicht'}; var year_month_day = attr.date_report.split('-'); - li.append(createElement('a', {href: attr.wiki + '#Eintr.C3.A4ge'}).text(condition_text[attr.condition]), ' '); - li.append(createElement('small').text(year_month_day[2] + '.' + year_month_day[1] + '.'), ' '); - li.append(createElement('em').append(createElement('a', {href: attr.wiki + '#Eintragen'}).text('Neu'))); + p.append(createElement('a', {href: attr.wiki + '#Eintr.C3.A4ge'}).text(condition_text[attr.condition]), ' '); + p.append(createElement('small').text(year_month_day[2] + '.' + year_month_day[1] + '.'), ' '); + p.append(createElement('em').append(createElement('a', {href: attr.wiki + '#Eintragen'}).text('Neu'))); } else { - li.append(createElement('em').append(createElement('a', {href: attr.wiki + '#Eintragen'}).text('Bitte eintragen'))); + p.append(createElement('em').append(createElement('a', {href: attr.wiki + '#Eintragen'}).text('Bitte eintragen'))); } }