Bugfix 828967
This commit is contained in:
parent
adc4b265a4
commit
963ce60854
1 changed files with 6 additions and 5 deletions
|
|
@ -1,7 +1,8 @@
|
|||
function addHTTP(element) {
|
||||
if (!element.value.match(":") && !element.value.match("\^") && element.value.match(/\.\w+/)) {
|
||||
element.value = "http://"+element.value
|
||||
}
|
||||
if (!element.value.match("http://")) {
|
||||
element.value = "http://"+element.value;
|
||||
}
|
||||
if (!element.value.match(/^http:\/\/.+\..+/)){
|
||||
alert("This is not a valid url. Please check if it is correct.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue