Bug 4969: Do not jump to the top on click
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 7 Mar 2017 18:45:57 +0000 (15:45 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 31 Mar 2017 13:51:49 +0000 (13:51 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt

index d048a84..18d6654 100644 (file)
@@ -34,12 +34,14 @@ $(document).ready(function() {
         $(this).find("legend").html(legend);
     });
     $("#show_all_vendors").hide();
-    $("#show_active_vendors").click(function(){
+    $("#show_active_vendors").on('click', function(e){
+        e.preventDefault();
         $(".inactive").hide();
         $("#show_active_vendors").hide();
         $("#show_all_vendors").show();
     });
-    $("#show_all_vendors").click(function(){
+    $("#show_all_vendors").on('click', function(e){
+        e.preventDefault();
         $(".inactive").show();
         $("#show_all_vendors").hide();
         $("#show_active_vendors").show();