forked from MapComplete/MapComplete
Fix: chromium browsers don't handle spaces in tel:
-links well
This commit is contained in:
parent
b79835074f
commit
4168ef01e3
5 changed files with 315 additions and 279 deletions
|
@ -175,13 +175,23 @@
|
|||
"cs": "Jaké je telefonní číslo {title()}?"
|
||||
},
|
||||
"render": {
|
||||
"*": "<a href='tel:{phone}'>{phone}</a>"
|
||||
"special": {
|
||||
"type": "link",
|
||||
"href": "tel:{phone}",
|
||||
"text": "{phone}"
|
||||
}
|
||||
},
|
||||
"icon": "./assets/layers/questions/phone.svg",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "contact:phone~*",
|
||||
"then": "<a href='tel:{contact:phone}'>{contact:phone}</a>",
|
||||
"then":{
|
||||
"special": {
|
||||
"type": "link",
|
||||
"href": "tel:{contact:phone}",
|
||||
"text": "{contact:phone}"
|
||||
}
|
||||
},
|
||||
"hideInAnswer": true,
|
||||
"icon": "./assets/layers/questions/phone.svg"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue