merging 5.5.4 fixes
This commit is contained in:
parent
47015a8b26
commit
36a7165d0d
1 changed files with 8 additions and 6 deletions
|
|
@ -1,8 +1,10 @@
|
|||
function addHTTP(element) {
|
||||
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.");
|
||||
}
|
||||
if (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