From 8367e9628b1a334e7c25917ce6761c804bc76776 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 24 Jan 2013 09:21:34 -0500 Subject: [PATCH] Bug 4354 - Followup - Add row highlighting Test plan: * Click on a row to edit * Note that the row is highlighted in orange Signed-off-by: Jonathan Druart Signed-off-by: Nicole C. Engard All tests pass. Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer Signed-off-by: Jared Camins-Esakov --- koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 91d0431cf7..f8d75022d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -254,6 +254,7 @@ table+table { border : 0; } +.highlighted-row { background-color: orange !important } tr.highlight td, tr.highlight th, tr.odd td { background-color : #F3F3F3; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt index 76f54a2334..6611d67a5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -10,7 +10,9 @@ $(document).ready(function() { $('#selectlibrary').submit(); }); $(".editrule").click(function(){ + $('#default-circulation-rules td').removeClass('highlighted-row'); $(this).parent().parent().find("td").each(function (i) { + $(this).addClass('highlighted-row'); itm = $(this).text(); itm = itm.replace(/^\s*|\s*$/g,''); var current = $("#default-circulation-rules tr:last td:eq("+i+")"); -- 2.39.5