added JavaScript check for empty password to remove_orphaned_pages action
This commit is contained in:
parent
bc97b8d4f7
commit
7c28e46688
2 changed files with 20 additions and 8 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue