Add clear form button for "Add new password" div
This commit is contained in:
@@ -109,6 +109,21 @@ function generate_simple_password()
|
||||
document.getElementById("new_password").value = _generate_random(8, symbols);
|
||||
}
|
||||
|
||||
function clear_form()
|
||||
{
|
||||
div = document.getElementById("add_new_password");
|
||||
|
||||
inputs = div.getElementsByTagName("input");
|
||||
|
||||
for(i=0; i<inputs.length; i++)
|
||||
{
|
||||
if (inputs[i].type == "text" ||
|
||||
inputs[i].type == "password")
|
||||
inputs[i].value = "";
|
||||
}
|
||||
chkPass("");
|
||||
}
|
||||
|
||||
function url_domain(data) {
|
||||
var uri = parseUri(data)
|
||||
return uri['host'];
|
||||
|
||||
Reference in New Issue
Block a user