mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 19:33:54 +01:00
remove everything but numbers and plus from links on telephon numbers, as telephone software might not like it
This commit is contained in:
parent
52dd6cd644
commit
e8469227f6
@ -154,6 +154,8 @@ var et2_url = et2_textbox.extend(
|
||||
value = value.replace('♥','').replace('(0)','');
|
||||
value = value.replace(/[abc]/gi,2).replace(/[def]/gi,3).replace(/[ghi]/gi,4).replace(/[jkl]/gi,5).replace(/[mno]/gi,6);
|
||||
value = value.replace(/[pqrs]/gi,7).replace(/[tuv]/gi,8).replace(/[wxyz]/gi,9);
|
||||
// remove everything but numbers and plus, as telephon software might not like it
|
||||
value = value.replace(/[^0-9+]/g, '');
|
||||
|
||||
// movile Webkit (iPhone, Android) have precedence over server configuration!
|
||||
if (navigator.userAgent.indexOf('AppleWebKit') !== -1 &&
|
||||
|
Loading…
Reference in New Issue
Block a user