mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
watermark: change color on input
This commit is contained in:
parent
55f1d6bba3
commit
29956ea914
1 changed files with 9 additions and 0 deletions
|
|
@ -766,6 +766,15 @@ function createEventsListener() {
|
|||
})
|
||||
document.querySelector('input[name=watermark]').addEventListener('blur', function (e) {
|
||||
setIsChanged(hasModifications || !!e.target.value)
|
||||
|
||||
const input = e.target
|
||||
input.classList.remove('border-success')
|
||||
input.classList.add('border-secondary')
|
||||
|
||||
if (input.value) {
|
||||
input.classList.remove('border-secondary')
|
||||
input.classList.add('border-success')
|
||||
}
|
||||
})
|
||||
|
||||
if(document.querySelector('#alert-signature-help')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue