Bug 37946: (follow-up) Update menu style to hide

We shouldn't use hide() to hide the Bootstrap menu. The correct move
here is to empty the "style" attribute.

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Owen Leonard 2024-09-20 12:01:11 +00:00 committed by Katrin Fischer
parent 38ade44def
commit 72d332b0ce
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ $( document ).ready( function() {
if( tgt.hasClass("z3950actions") ) { // direct button click
var link = $( "a[title='" + tgt.text() + "']", row );
if( link.length == 1) link.click();
row.find('ul.dropdown-menu').hide();
row.find('ul.dropdown-menu').attr("style","");
return;
} else {
if( tgt.prop('nodeName') == 'TD' && !tgt.hasClass("actions") ){