From: Ian Walls <[email protected]>

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

http://bugs.koha-community.org/show_bug.cgi?id=6954
Signed-off-by: Nicole C. Engard <[email protected]>
---
 .../prog/en/modules/cataloguing/z3950_search.tt    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt 
b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
index 5adc074..20150ac 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
@@ -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) {
-- 
1.7.2.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to