Omitted some quotes in javascript hashes.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 4 Nov 2013 22:51:08 +0000 (22:51 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 4 Nov 2013 22:51:08 +0000 (22:51 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrmap/trunk@1793 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrmap.js

index 37f8208e96608ec129c22912465c42c131176147..54d8ba4108dafe59f7e8d2ea8d0a9fa341fbafbc 100644 (file)
--- a/wrmap.js
+++ b/wrmap.js
@@ -238,24 +238,24 @@ function init_wrmap(i, jq_map) {
                        // sledrun information
                        if (attr.type == 'sledrun') {
                                var ul = appendElement(popup_div, 'ul');
-                               ul.append(createElement('li').append(createElement('a', {'href': attr.wiki}).text('Details zur Rodelbahn')));
+                               ul.append(createElement('li').append(createElement('a', {href: attr.wiki}).text('Details zur Rodelbahn')));
                                var li = appendElement(ul, 'li').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('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')));
+                                       li.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')));
+                                       li.append(createElement('em').append(createElement('a', {href: attr.wiki + '#Eintragen'}).text('Bitte eintragen')));
                                }
                        }
 
                        // wiki link
                        if (attr.wiki !== undefined && attr.type !== 'sledrun') {
-                               var a = appendElement(appendElement(popup_div, 'p'), 'a', {'href': attr.wiki});
+                               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'}));
+                               else a.append(createElement('img', {src: attr.thumb_url, alt: 'Details'}));
                        }
 
                        // no popup if we don't have anything to say