Prevent page jump to top when clicking on tab
Prevent the click event from acting like a link, so that it doesn't
jump to the top of the page when a user clicks on the Browsers or
Configuration tab of a node within the console.
}
$(document).ready(function() {
- $(".tabs li").click(function() {
+ $(".tabs li").click(function(event) {
var currentProxy = $(this).closest('.proxy');
var type = $(this).attr('type');
show(currentProxy, type);
+ event.preventDefault(); // Prevent the click from going to the top of the page
});
showDefaults();
});
