ToastFreeware
/
philipp
/
winterrodeln
/
mediawiki_extensions
/
wrmap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf724e
)
Sledrun names are shown without "Sledrun:" prefix.
author
Philipp Spitzer
<philipp@spitzer.priv.at>
Sat, 2 Jan 2021 13:54:14 +0000
(14:54 +0100)
committer
Philipp Spitzer
<philipp@spitzer.priv.at>
Sat, 2 Jan 2021 13:54:14 +0000
(14:54 +0100)
wrmap.js
patch
|
blob
|
history
diff --git
a/wrmap.js
b/wrmap.js
index 5188f82f411b16df09479aa0b6b85be4ba56a812..72d48ad1b9bb1403efb5c7b16b8b24598d62aa80 100644
(file)
--- a/
wrmap.js
+++ b/
wrmap.js
@@
-95,6
+95,7
@@
function init_wrmap(i, jq_map) {
function get_feature_title(feature) {
var title = feature.get('type');
+ if (title == 'sledrun') return feature.get('name');
title = title.charAt(0).toUpperCase() + title.slice(1); // first letter uppercase
if (feature.get('name')) title += ': ' + feature.get('name');
return title;