merging 5.5.4 bugfixes
This commit is contained in:
parent
1dba651ea1
commit
a7ccedb956
5 changed files with 11 additions and 7 deletions
|
|
@ -1,10 +1,10 @@
|
|||
function addHTTP(element) {
|
||||
if (element.value != "") {
|
||||
if (!element.value.match("http://")) {
|
||||
if (!element.value.match(/^\w+:\/\//)) {
|
||||
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.match(/^\w+:\/\/.+\..+/)){
|
||||
alert("That does not look like a proper URL. Please check if it is correct.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue