From a1c83e28bc8264fb579f0269b289226571e66281 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 Signed-off-by: Kyle M Hall Signed-off-by: Mason James --- .../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 85a4486bad..c797c2e16d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -92,13 +92,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");} - ); -}); //]]> @@ -149,9 +142,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.39.5