From 51370f7971bf296956585c426a431fa2eaecb080 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 27 Nov 2012 14:34:27 -0500 Subject: [PATCH] [Signed off] Bug 9154 - On item edit page, highlight row of item being edited This patch changes the item edit page to add a highlighting background color to the row in the table of all items corresponding to the item being edited. Changes to JavaScript have been made to allow row color changes on hover. Other minor edits: Capitilization corrections. Signed-off-by: Melia Meggs --- koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css | 8 ++++++++ .../prog/en/modules/cataloguing/additem.tt | 14 +++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css index d35a471..79ceb48 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css @@ -155,4 +155,12 @@ a.tagnum { .floating { -webkit-box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .5); box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, .5); +} + +tr.active td { + background-color: #FFFFCC; +} + +tr.active.highlight td { + background-color: #FEF4B4; } \ No newline at end of file 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 2c33df8..0222046 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -87,8 +87,8 @@ function confirm_deletion(biblionumber,itemnumber) { $(document).ready(function() { $("#cataloguing_additem_itemlist tr").hover( - function () {$(this).attr("class","highlight");}, - function () {$(this).attr("class","" );} + function () {$(this).addClass("highlight");}, + function () {$(this).removeClass("highlight");} ); }); //]]> @@ -131,7 +131,11 @@ $(document).ready(function() { [% END %] [% FOREACH item_loo IN item_loop %] + [% IF ( item_loo.itemnumber == itemnumber) %] + + [% ELSE %] + [% END %] [% IF ( item_loo.nomod ) %]  [% ELSE %][% IF ( item_loo.hostitemflag ) %]Edit in host Delink [% ELSE %]Edit @@ -197,8 +201,8 @@ $(document).ready(function() { --> - -