Steps to reproduce: 1. Administration - Item search fields 2. New field - fill out any values for the required fields and submit 3. Click the delete button for the new field Expected result: koha-tmpl/intranet-tmpl/prog/js/item_search_fields.js#L13 thinks it will add the class "highlighted-row" to the table row, and that doing so will show that row with a yellow background while the alert asks if you are sure Actual result: since CSRF protection added a form around the button, the row is three parent()s up, not two, but even after adding the third parent(), the page doesn't reflect the added class until after the confirm() alert is dismissed, which is too late.