Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e19eeeef authored by Adam Tauber's avatar Adam Tauber
Browse files

[fix] do not submit form if there is no search query - fixes #341

parent f79f6713
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@ $(document).ready(function() {
            $('#categories label').removeClass('btn-primary').removeClass('active').addClass('btn-default');
            $(this).removeClass('btn-default').addClass('btn-primary').addClass('active');
            $($(this).children()[0]).prop('checked', 'checked');
            if($('#q').val()) {
                $('#search_form').submit();
            }
            return false;
        });
    }