Remove jQuery’s $(document).ready(…)

A small step towards getting rid of jQuery.

In hyperkitty/static/hyperkitty/js/hyperkitty-overview.js:setup_overview() the line

    // submit search on enter (only add if there's a nav-tab's search box)
    if ($('ul.nav-tabs').length > 0) {
        $(document).ready(function() { // ⇐ I mean this line
            $('#nav-tab-search').keydown(function(e) {

is not changed, because I do not find a way to execute it. Where is an element with id nav-tab-search installed, so that the last line in the snippet can catch it?

Merge request reports

Loading