From f1d5fffea6688e72d17afd1251e60e2f95f466b8 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: Tomas Cohen Arazi (cherry picked from commit 83c6817a86de68fb08cb73aef3b8b46d12587116) Signed-off-by: Chris Cormack --- .../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 637dc39e9c..ab9621b964 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -89,13 +89,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");} - ); -}); //]]> @@ -146,9 +139,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