Bug 26988: (follow-up) Change event to focus

Click event on select element if Firefox does not work as expected, so
this patch changes the event to focus for it to work seamlessly in both
browsers.

https://bugs.koha-community.org/show_bug.cgi?id=26899
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Agustin Moyano 2020-11-11 12:22:20 -03:00 committed by Jonathan Druart
parent 19a30acaec
commit 7edb1a55bc
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ $(document).ready(function() {
});
});
$(".pickup_location_dropdown").on( "click",function(){
$(".pickup_location_dropdown").on( "focus",function(){
var this_dropdown = $(this);
if(this_dropdown.data('loaded')===1){ return true};
var hold_id = $(this).data('hold_id');