merging 5.5.4 fixes

This commit is contained in:
JT Smith 2003-12-29 20:43:30 +00:00
parent 47015a8b26
commit 36a7165d0d

View file

@ -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.");
}
}
}