added evalURL()-function
This commit is contained in:
parent
0a11c9c515
commit
cd7adeca02
1 changed files with 10 additions and 0 deletions
|
@ -132,3 +132,13 @@ function activateLinks (str) {
|
||||||
return (str);
|
return (str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* function checks if url is correct
|
||||||
|
* if not it assumes that http is the protocol
|
||||||
|
*/
|
||||||
|
|
||||||
|
function evalURL(url) {
|
||||||
|
if (url.indexOf("://") < 0)
|
||||||
|
return ("http://" + url);
|
||||||
|
return (url);
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue