merging 5.5.4 bugfixes

This commit is contained in:
JT Smith 2004-01-01 23:08:28 +00:00
parent 1dba651ea1
commit a7ccedb956
5 changed files with 11 additions and 7 deletions

View file

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