Bug 4354 - Followup - Add row highlighting
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 24 Jan 2013 14:21:34 +0000 (09:21 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 22 Mar 2013 00:03:29 +0000 (20:03 -0400)
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>
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt

index 91d0431..f8d7502 100644 (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;
index 76f54a2..6611d67 100644 (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+")");