added JavaScript check for empty password to remove_orphaned_pages action

This commit is contained in:
Alexey Verkhovsky 2005-02-05 13:53:29 +00:00
parent bc97b8d4f7
commit 7c28e46688
2 changed files with 20 additions and 8 deletions

View file

@ -8,11 +8,18 @@ function cleanAddress() {
document.getElementById('address').value.replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
}
function validateSetup() {
if (document.getElementById('system_password').value == "") {
function checkSystemPassword(password) {
if (password == "") {
alert("You must enter the system password");
return false;
}
}
function validateEditWebForm() {
if (!checkSystemPassword(document.getElementById('system_password').value))
return false
end
if (document.getElementById('name').value == "") {
alert("You must pick a name for the web");