hide navigation links on click, to avoid them being clicked before ready

This commit is contained in:
Frédéric Péters 2012-09-20 18:12:59 +02:00
parent 60e9918e42
commit 71cb504ccb
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ function display_results(data) {
);
$('#results a.nav').click(function() {
var this_link = $(this);
$('#results a.nav').hide();
$.getJSON('search/' + $(this).attr('href'), function(data) {
$('#offset').val($(this_link).data('offset'));
display_results(data);