Bugzilla – Attachment 99666 Details for
Bug 24510
When placing a hold, cursor doesn't focus on patron name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24510: Code cleaning
Bug-24510-Code-cleaning.patch (text/plain), 2.37 KB, created by
Jonathan Druart
on 2020-02-26 16:52:14 UTC
(
hide
)
Description:
Bug 24510: Code cleaning
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-26 16:52:14 UTC
Size:
2.37 KB
patch
obsolete
>From 1467c8972ddcba4993949fc51b46639ae68cc479 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 26 Feb 2020 17:38:53 +0100 >Subject: [PATCH] Bug 24510: Code cleaning > >Additional test plan: >Create 3 clubs: abc adf axy >place a hold for on of those club, search for a club 'a' >you will get the focus on the "Clubs" tab > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/en/modules/reserve/request.tt | 31 +++++++--------------- > 1 file changed, 10 insertions(+), 21 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index 6bb34c5476..25ba59dabb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -977,27 +977,16 @@ > columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %] > > $(document).ready(function() { >- [% UNLESS clubs %] >- $('#circ_holds_select').tabs({ >- active: 0, >- activate: function(){ >- $(this).find("input.focus").focus(); >- }, >- create: function(){ >- $(this).find("input.focus").focus(); >- } >- }); >- [% ELSE %] >- $('#circ_holds_select').tabs({ >- active: 1, >- activate: function(){ >- $(this).find("input.focus").focus(); >- }, >- create: function(){ >- $(this).find("input.focus").focus(); >- } >- }); >- [% END %] >+ [% SET active = clubs ? 1 : 0 %] >+ $('#circ_holds_select').tabs({ >+ active: [% active %], >+ activate: function(){ >+ $(this).find("input.focus").focus(); >+ }, >+ create: function(){ >+ $(this).find("input.focus").focus(); >+ } >+ }); > function ToggleHoldsToPlace() { > if ( $("#requestany").prop('checked') ) { > $("#holds_to_place_count").prop('disabled', false); >-- >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 24510
:
97887
|
97922
|
99658
|
99659
|
99660
|
99661
|
99662
|
99663
|
99665
|
99666
|
100733
|
100827
|
100828
|
100829
|
100830