Bugzilla – Attachment 108801 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.65 KB, created by
Timothy Alexis Vass
on 2020-08-21 10:42:13 UTC
(
hide
)
Description:
Bug 26267: Add jQuery validator to memberentrygen.tt
Filename:
MIME Type:
Creator:
Timothy Alexis Vass
Created:
2020-08-21 10:42:13 UTC
Size:
1.65 KB
patch
obsolete
>From c503492479912aa0eca7f38f86b0d778b04ff55a Mon Sep 17 00:00:00 2001 >From: Timothy Alexis Vass <timothy_alexis.vass@ub.lu.se> >Date: Fri, 21 Aug 2020 12:41:18 +0200 >Subject: [PATCH] Bug 26267: Add jQuery validator to memberentrygen.tt > >To test: >1) Initiate password recovery. >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 | 16 ++++++++++++++++ > 1 file changed, 16 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..113971a4d4 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,22 @@ legend:hover { > $(".toggler").toggle(); > }); > >+ $(document).ready(function() { >+ $("#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