Bugzilla – Attachment 137867 Details for
Bug 25498
Allow to change owner of public or shared list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25498: (follow-up) Change for autocomplete change of 30578
Bug-25498-follow-up-Change-for-autocomplete-change.patch (text/plain), 2.28 KB, created by
Marcel de Rooy
on 2022-07-19 12:21:55 UTC
(
hide
)
Description:
Bug 25498: (follow-up) Change for autocomplete change of 30578
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-07-19 12:21:55 UTC
Size:
2.28 KB
patch
obsolete
>From 89fb5195e0a061efea26e9184e50f92738f55555 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 19 Jul 2022 12:18:21 +0000 >Subject: [PATCH] Bug 25498: (follow-up) Change for autocomplete change of > 30578 >Content-Type: text/plain; charset=utf-8 > >Test plan: >Check if the patron search still works on the intranet shelves form >when transferring ownership. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../prog/en/modules/virtualshelves/shelves.tt | 21 ++++++------------- > 1 file changed, 6 insertions(+), 15 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index b08607e974..356f801614 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -892,21 +892,12 @@ > > [% IF op == 'transfer' %] > $(document).ready(function() { >- $('#find_patron').autocomplete({ >- source: "/cgi-bin/koha/circ/ysearch.pl", >- minLength: 3, >- select: function( event, ui ) { >- $('#new_owner_name').html( ui.item.firstname + " " + ui.item.surname ); >- $('#new_owner').val( ui.item.borrowernumber ); >- $('#find_patron').val('').focus(); >- return false; >- }, >- }).data('ui-autocomplete')._renderItem = function( ul, item ) { >- return $('<li></li>') >- .data( 'ui-autocomplete-item', item ) >- .append( '<a>' + item.surname + ', ' + item.firstname + '</a>' ) >- .appendTo(ul); >- }; >+ patron_autocomplete( $("#find_patron"), { 'on-select-callback': function( event, ui ) { >+ $('#new_owner_name').html( ui.item.firstname + " " + ui.item.surname ); >+ $('#new_owner').val( ui.item.patron_id ); >+ $('#find_patron').val('').focus(); >+ return false; >+ }}); > > $('#transferform').submit(function() { > if( $('#new_owner').val() == '' ) { >-- >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 25498
:
135889
|
135921
|
136008
|
136009
|
136010
|
136011
|
136033
|
136034
|
136035
|
136036
|
136166
|
136167
|
136168
|
136169
|
136220
|
136221
|
137862
|
137863
|
137864
|
137865
|
137866
|
137867
|
137871
|
137908