Bug 32204: Check for hash before setting focus
authorLucas Gass <lucas@bywatersolutions.com>
Tue, 10 Jan 2023 18:10:43 +0000 (18:10 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 27 Jan 2023 18:20:45 +0000 (15:20 -0300)
commit5197d63c5593b1e808fcbb10c0124c0ea252bbcb
treefb03ea5f5667fee984c9678bd2fe27f7e7b66878
parent2a5e06094bfab455fa05721bde6e9ee7619716c2
Bug 32204: Check for hash before setting focus

1. Search the catalog and view a record detail page of a record with items
2. Click 'Edit items'
3. Choose one item from the list and click 'Edit'
4. The URL fragment or in-page anchor (#edititem) is appended to the end of the URL but you are not placed on it. Instead you are placed at the top of the page and must scroll down to edit the particular item.
5. Apply patch
6. Try steps 1 - 3 again, now you should be placed in the correct location (#edititem) when editing an item.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/staff-global.js