Bugzilla – Attachment 138241 Details for
Bug 31251
"Clear" patron attribute link does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31251: Use jQuery val() to clear_entry
Bug-31251-Use-jQuery-val-to-clearentry.patch (text/plain), 1.30 KB, created by
David Nind
on 2022-07-29 00:25:28 UTC
(
hide
)
Description:
Bug 31251: Use jQuery val() to clear_entry
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-07-29 00:25:28 UTC
Size:
1.30 KB
patch
obsolete
>From 9f2a445a80fb2e06c62143306db7152b9f5d5f63 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 28 Jul 2022 18:18:15 +0000 >Subject: [PATCH] Bug 31251: Use jQuery val() to clear_entry > >1. Add some patron attributes that are textarea and some that have an AV category so they are select dropdowns >2. Go to the patron form and add some values to the patron attributes >3. Use the "Clear" button to try and clear the values, doesnt work. >4. Apply patch >5. Try clearing values from patron attributes that are both select dropdowns and textarea. The "Clear" button should work. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/js/members.js | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js >index 9ae9c18ba8..6f58302e9a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/members.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/members.js >@@ -36,8 +36,8 @@ function check_form_borrowers(nav){ > > function clear_entry(node) { > var original = $(node).parent(); >- $("textarea", original).attr('value', ''); >- $("select", original).attr('value', ''); >+ $("textarea", original).val(''); >+ $("select", original).val(''); > } > > function clone_entry(node) { >-- >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 31251
:
138223
|
138241
|
138392