projects
/
working
/
Evergreen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc52f9f
)
JBAS-1665 Field validation CSS repair
author
Bill Erickson
<berickxx@gmail.com>
Mon, 30 Jan 2017 15:21:16 +0000
(10:21 -0500)
committer
Bill Erickson
<berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000
(15:46 -0400)
Use jquery to set/remove classes during field validation tests to ensure
other classes on the elements are not accidentally removed.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/opac/register.js
patch
|
blob
|
history
diff --git
a/Open-ILS/web/js/ui/default/opac/register.js
b/Open-ILS/web/js/ui/default/opac/register.js
index
87cfb3a
..
2d9f189
100644
(file)
--- a/
Open-ILS/web/js/ui/default/opac/register.js
+++ b/
Open-ILS/web/js/ui/default/opac/register.js
@@
-183,7
+183,11
@@
function validate(dom_id) {
}
if (element) {
- element.className = valid ? '' : 'patron-reg-invalid';
+ if (valid) {
+ $(element).removeClass('patron-reg-invalid');
+ } else {
+ $(element).addClass('patron-reg-invalid');
+ }
}
}