mirror of
https://github.com/quantum5/correcthorsebatterystaple.git
synced 2025-04-24 10:11:57 -04:00
added copy on generate setting saving and use in Generate
This commit is contained in:
parent
be2b2f344e
commit
53f52be5fd
|
@ -12,6 +12,7 @@ $(() => {
|
|||
list: 'large',
|
||||
count: 4,
|
||||
symbol: true,
|
||||
copy: false,
|
||||
separator: defaultSymbol,
|
||||
}
|
||||
|
||||
|
@ -61,6 +62,8 @@ $(() => {
|
|||
$('#run-generator').click(() => {
|
||||
const options = $options.serializeObject()
|
||||
$output.text(generate(options)).removeClass('placeholder')
|
||||
if(options.copy)
|
||||
new Clipboard('#run-generator')
|
||||
$('#copy-password').prop('disabled', false)
|
||||
return false
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue