Bug 6954: z39.50 results highlighting not sticking
authorIan Walls <ian.walls@bywatersolutions.com>
Tue, 4 Oct 2011 16:46:24 +0000 (12:46 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 18 Oct 2011 03:12:28 +0000 (16:12 +1300)
Moves the highlighting call of the JS up to right after 'row' is defined, so the
highlighting will stick even after you click on of the popup menu options

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt

index 5adc074..20150ac 100644 (file)
@@ -43,6 +43,7 @@ $(document).ready(function(){
             var row = $(this).parent();
             $(".linktools").hide();
             $("tr").removeClass("selected");
+            row.addClass("selected");
             if($tgt.is("a")||$tgt.is(":nth-child(7)")||$tgt.is(":nth-child(8)")||$tgt.is(":nth-child(9)")||$tgt.is(":nth-child(10)")){
                 return true;
             } else {
@@ -51,7 +52,6 @@ $(document).ready(function(){
                 var left = position.left+5;
                 $(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
             }
-            row.addClass("selected");
         });
     $("form[name='f']").submit(function(){
         if ($('input[type=checkbox]').filter(':checked').length == 0) {