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

--- Comment #5 from Phil Ringnalda <[email protected]> ---
Created attachment 179588
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179588&action=edit
Bug 39400: "Jump to add item form" doesn't work while editing an existing item

The link at the top of the item editor page to "Jump to add item form" tries
to scrollIntoView the element with id="additema", but that element only exists
while you are adding a new item. While you are editing an existing item, it is
replaced by an element with id="edititem". Whichever element you have at the
moment is always just below the form with id="f", so we can just scroll that
into view instead.

Test plan:
 1. Without the patch, go to the details page for any bib record with at
    least one item, and click the Edit button on the row for an item in the
    holdings table.
 2. You should be scrolled down to the form for editing that item
 3. Scroll up to the top of the page, click the Jump to add item form link
 4. You will not be scrolled back down to the form
 5. Apply patch, shift+reload page
 6. Now the link should scroll you back down to the form
 7. Return to the biblio details page, click Edit - Manage items and verify
    that the Jump to add item form link still works when you are not editing
    an existing item
 8. Click the Add multiple copies of this item button and add 30 items
 9. Make sure that the link still scrolls the form into view both while
    you are editing an existing item, and while you are adding a new item

Sponsored-by: Chetco Community Public Library

-- 
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