mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2025-05-10 10:15:27 -04:00
show error if no options are selected
This commit is contained in:
parent
1ee8ae89b1
commit
b9f69e4d3a
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@
|
||||||
};
|
};
|
||||||
function outputGeneratedPassword() {
|
function outputGeneratedPassword() {
|
||||||
var password = passwordGenerator.generatePassword(getOptions());
|
var password = passwordGenerator.generatePassword(getOptions());
|
||||||
|
if (password === '') {
|
||||||
|
alert("Whops. You unselected all the options. I don't know what characters you want. Click on the button entitled \"Advanced Options\" and enable some options and thent try again. Nice one");
|
||||||
|
return;
|
||||||
|
}
|
||||||
$("#password-input").val(password);
|
$("#password-input").val(password);
|
||||||
}
|
}
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue