From: Frédérick Capovilla <frederick.capovi...@sys-tech.net>

The popup menu's options didn't link to the correct breedingid.

Signed-off-by: Julian Maurice <julian.maur...@biblibre.com>
---
 .../prog/en/modules/acqui/z3950_search.tmpl        |    5 +++--
 .../prog/en/modules/cataloguing/z3950_search.tmpl  |    5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tmpl 
b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tmpl
index 2219dfa..452c1f8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tmpl
@@ -38,6 +38,9 @@ $.tablesorter.addParser({
             var $tgt = $(event.target);
             $(".linktools").hide();
             $("tr").removeClass("selected");
+            var row = $(this).parent();
+            row.addClass("selected");
+            
             
if($tgt.is("a")||$tgt.is(":nth-child(5)")||$tgt.is(":nth-child(6)")||$tgt.is(":nth-child(7)")||$tgt.is(":nth-child(8)")){
                 return true;
             } else {
@@ -46,8 +49,6 @@ $.tablesorter.addParser({
                 var left = position.left+5;
                 
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
             }
-            var row = $(this).parent();
-            row.addClass("selected");
         });
 });
 //]]>
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl 
b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl
index d4b292f..b669d22 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl
@@ -42,6 +42,9 @@ $(document).ready(function(){
             var $tgt = $(event.target);
             $(".linktools").hide();
             $("tr").removeClass("selected");
+            var row = $(this).parent();
+            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 {
@@ -50,8 +53,6 @@ $(document).ready(function(){
                 var left = position.left+5;
                 
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
             }
-            var row = $(this).parent();
-            row.addClass("selected");
         });
     $("form[name='f']").submit(function(){
         if ($('input[type=checkbox]').filter(':checked').length == 0) {
-- 
1.7.5.4

_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha-community.org
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