Bug 4969: Do not jump to the top on click

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2017-03-07 15:45:57 -03:00 committed by Kyle M Hall
parent 8d2d59190a
commit 3c81b82b4b

View 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();