Bugzilla – Attachment 108976 Details for
Bug 26267
Add jQuery validator to memberentrygen.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26267: Add jQuery validator to memberentrygen.tt
Bug-26267-Add-jQuery-validator-to-memberentrygentt.patch (text/plain), 1.53 KB, created by
Timothy Alexis Vass
on 2020-08-24 09:15:19 UTC
(
hide
)
Description:
Bug 26267: Add jQuery validator to memberentrygen.tt
Filename:
MIME Type:
Creator:
Timothy Alexis Vass
Created:
2020-08-24 09:15:19 UTC
Size:
1.53 KB
patch
obsolete
>From 8a645e153c7a0381dd6a73e28530b67fc7c5081f Mon Sep 17 00:00:00 2001 >From: Timothy Alexis Vass <timothy_alexis.vass@ub.lu.se> >Date: Mon, 24 Aug 2020 11:13:33 +0200 >Subject: [PATCH] Bug 26267: Add jQuery validator to memberentrygen.tt > >To test: >1) Add a new patron. >2) Try to enter an invalid password. >3) Confirm that validation occurs. >4) Try to enter mismatching passwords. >5) Confirm that validation occurs. >6) Sign off. >--- > .../prog/en/modules/members/memberentrygen.tt | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index fbbb91a669..bfbc8d0656 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -1619,6 +1619,20 @@ legend:hover { > $(".toggler").toggle(); > }); > >+ $("#entryform").validate({ >+ rules: { >+ password: { >+ required: true, >+ password_strong: true, >+ password_no_spaces: true >+ }, >+ password2: { >+ required: true, >+ password_match: true >+ } >+ } >+ }); >+ > $("#save_quick_add").click(function(){ > $("#quick_add_form").validate(); > if( $("#quick_add_form").valid()){ >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26267
:
108801
|
108976
|
108983