From e50d3ae2ffbfbe2bddda5d7d9c946540401cd54c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 26 May 2015 14:52:07 +0200 Subject: [PATCH] Bug 14276: Keep highlight on the active item in item editor The highlight only works on even items. This patch should resolve it. Test plan: Edit biblio with multiple items. Verify that the highlight is visible on the selected item you edit. And that there is no highlight for a new item. Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 9cdc1cf..8c60023 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -105,13 +105,6 @@ function confirm_deletion(biblionumber,itemnumber) { $("#row"+itemnumber).attr("class",""); } } - -$(document).ready(function() { - $("#cataloguing_additem_itemlist tr").hover( - function () {$(this).addClass("highlight");}, - function () {$(this).removeClass("highlight");} - ); -}); //]]> @@ -162,9 +155,9 @@ $(document).ready(function() { [% FOREACH item_loo IN item_loop %] [% IF ( item_loo.itemnumber == itemnumber) %] [% IF item_loo.nomod %] - + [% ELSE %] - + [% END %] [% ELSE %] [% IF item_loo.nomod %] -- 2.1.0