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 <jonathan.druart@koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 83c6817a86)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
parent
1a346c35fe
commit
f1d5fffea6
|
|
@ -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");}
|
||||
);
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" />
|
||||
|
|
@ -146,9 +139,9 @@ $(document).ready(function() {
|
|||
[% FOREACH item_loo IN item_loop %]
|
||||
[% IF ( item_loo.itemnumber == itemnumber) %]
|
||||
[% IF item_loo.nomod %]
|
||||
<tr id="row[% item_loo.itemnumber %]" class="active">
|
||||
<tr id="row[% item_loo.itemnumber %]" class="active highlight">
|
||||
[% ELSE %]
|
||||
<tr id="row[% item_loo.itemnumber %]" class="active editable">
|
||||
<tr id="row[% item_loo.itemnumber %]" class="active editable highlight">
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
[% IF item_loo.nomod %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue