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 <jonathan.druart@biblibre.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
All tests pass.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
Kyle Hall 2013-01-24 09:21:34 -05:00 committed by Jared Camins-Esakov
parent 3b01095378
commit 8367e9628b
2 changed files with 3 additions and 0 deletions

View file

@ -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;

View file

@ -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+")");