Bugzilla – Attachment 151718 Details for
Bug 33820
Add hints to warn the librarian that they will be logged out if they change their username
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33820: (follow-up) Add hint to member-password.tt
Bug-33820-follow-up-Add-hint-to-member-passwordtt.patch (text/plain), 1.72 KB, created by
David Cook
on 2023-05-26 00:11:06 UTC
(
hide
)
Description:
Bug 33820: (follow-up) Add hint to member-password.tt
Filename:
MIME Type:
Creator:
David Cook
Created:
2023-05-26 00:11:06 UTC
Size:
1.72 KB
patch
obsolete
>From 4d3c4d5c64bb995b9e1a6794334b42b477e54b94 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 24 May 2023 15:16:37 +0000 >Subject: [PATCH] Bug 33820: (follow-up) Add hint to member-password.tt > >This follow-up makes the same change to the "Change password" template. > >Signed-off-by: Sam Lau <samalau@gmail.com> >Signed-off-by: David Cook <dcook@prosentient.com.au> >--- > .../prog/en/modules/members/member-password.tt | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >index 8680830857..3d159fcd16 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >@@ -147,6 +147,15 @@ > }); > $("div.hint").eq(0).after(" <div class=\"hint\"><a href=\"#\" id=\"fillrandom\">"+_("Click to fill with a randomly generated suggestion. ")+"<strong>"+_("Passwords will be displayed as text")+"</strong>.</a></div>"); > >+ [% IF logged_in_user.borrowernumber == patron.borrowernumber %] >+ $("#newuserid").on("change", function(){ >+ $(this).parent().find("div.hint").remove(); >+ if ( "[% patron.userid | html %]" != $(this).val() ) { >+ $(this).parent().append('<div class="hint">%s</div>'.format(_("You will be logged out if you modify your username"))); >+ } >+ }); >+ [% END %] >+ > $(document).ajaxStart(function () { > $("input[name^=newpassword]").hide(); > $("label[for=newpassword2]").hide(); >-- >2.30.2
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 33820
:
151639
|
151640
|
151685
|
151686
|
151717
| 151718