https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39323

Brendan Gallagher <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #179729|0                           |1
        is obsolete|                            |

--- Comment #4 from Brendan Gallagher <[email protected]> ---
Created attachment 180056
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180056&action=edit
Bug 39323: Print dropdown in members toolbar should auto close

The upgrade to Bootstrap 5 broke some code which was designed to close a
dropdown menu:

$(".btn-group").removeClass("open");

This doesn't work in Bootstrap 5. You have to use:

$(".dropdown-menu").removeClass("show");

However, I found that in most cases this extra code wasn't needed if we
adjust the way we do the click handlers. Using "e.preventDefault()"
instead of "return false" seems to be the preferred practice.

This patch also makes a minor
change to CSS to fix a display issue with dropdown menus.

To test apply the patch and rebuild the staff interface CSS.

- Clear your browser cache if necessary.
- Search the catalog and click "Edit record" on one of the results.
- In the basic MARC editor click the dropdown menu on the "Save" button.
  - Test the three options there: "Save and view record", "Save and edit
    items", and "Save and continue editing".
  - In each case clicking one of those options should result in the menu
    closing before the page redirects.
  - The main "Save" button should still work correctly.

- Perform a patron search which will return results.
  - Check one or more patrons in the result and then click the "Add to
    patron list" button. The dropdown menu should look consistent with
    other dropdowns.

- View the detail page for one of the patron in your results.
  - Test each of the options under the "Print" dropdown menu. In each
    case the menu should close itself when you click one of the menu
    items.
  - Test the "Renew patron" and "Update child to adult patron"
  - Click "Search to hold" and perform a catalog search which will
    return results.
    - Check one or more results and test the "Place hold" dropdown menu
      items.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Brendan Gallagher <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to