Bugzilla – Attachment 63580 Details for
Bug 18569
Quick add patron will not copy over details from cities and towns pull down into patron details
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18569 - Quick add patron will not copy over details from cities and towns pull down into patron details
Bug-18569---Quick-add-patron-will-not-copy-over-de.patch (text/plain), 1.78 KB, created by
Jonathan Druart
on 2017-05-19 16:33:40 UTC
(
hide
)
Description:
Bug 18569 - Quick add patron will not copy over details from cities and towns pull down into patron details
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-05-19 16:33:40 UTC
Size:
1.78 KB
patch
obsolete
>From 9c6ddde7c1c2275e5c4364298a8743d1e57a3fe3 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 12 May 2017 09:38:37 -0400 >Subject: [PATCH] Bug 18569 - Quick add patron will not copy over details from > cities and towns pull down into patron details > >Followed test plan and the city value updates in the quick add form correctly. >Signed-off-by: Dilan Johnpulle <dilan@calyx.net.au> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/js/members.js | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js >index 3ea7868fcd..28853b209b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/members.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/members.js >@@ -307,13 +307,14 @@ $(document).ready(function(){ > $("#quick_add_form #guarantorsearch, #guarantorsearch").val(LABEL_SET_TO_PATRON); > }); > >- $("#select_city").change(function(){ >+ $(document.body).on('change','select[name="select_city"]',function(){ >+ $('select[name="select_city"]').val( $(this).val() ); > var myRegEx=new RegExp(/(.*)\|(.*)\|(.*)\|(.*)/); >- document.form.select_city.value.match(myRegEx); >- document.form.zipcode.value=RegExp.$1; >- document.form.city.value=RegExp.$2; >- document.form.state.value=RegExp.$3; >- document.form.country.value=RegExp.$4; >+ $(this).val().match(myRegEx); >+ $('input[name="zipcode"]').val( RegExp.$1 ); >+ $('input[name="city"]').val( RegExp.$2 ); >+ $('input[name="state"]').val( RegExp.$3 ); >+ $('input[name="country"]').val( RegExp.$4 ); > }); > > $("#dateofbirth").datepicker({ maxDate: "-1D", yearRange: "c-120:" }); >-- >2.11.0
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 18569
:
63442
|
63494
| 63580