js tweak, make variable local
This commit is contained in:
parent
9ca946809b
commit
1da7a9130e
1 changed files with 5 additions and 5 deletions
|
@ -83,14 +83,14 @@
|
||||||
this.parentNode.submit();
|
this.parentNode.submit();
|
||||||
return false;
|
return false;
|
||||||
} else if (document.getElementById('error')) {
|
} else if (document.getElementById('error')) {
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
$html = document.createElement("div");
|
var html = document.createElement("div");
|
||||||
$html.id = 'error';
|
html.id = 'error';
|
||||||
$html.innerHTML = "Oops! looks like you didn't enter a URL. Try starting with http://";
|
html.innerHTML = "Oops! looks like you didn't enter a URL. Try starting with http://";
|
||||||
this.parentNode.appendChild($html)
|
this.parentNode.appendChild($html)
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue