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

Commit fd728937 authored by Daniel J. Ramirez's avatar Daniel J. Ramirez
Browse files

Autosearch when selecting a suggestion

parent 5e9e53a8
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -57,10 +57,9 @@ $(document).ready(function() {
            source: searx.searchResults.ttAdapter()
        });

        // $('#q').bind('typeahead:active', function(ev) {
        //     console.log('opened!!');
        //     $("#search_input_container").addClass("expanded");
        // });
        $('#q').bind('typeahead:selected', function(ev) {
            $("#search_form").submit();
        });
    }
});
;/**
+0 −0

File changed.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

+3 −4
Original line number Diff line number Diff line
@@ -34,9 +34,8 @@ $(document).ready(function() {
            source: searx.searchResults.ttAdapter()
        });

        // $('#q').bind('typeahead:active', function(ev) {
        //     console.log('opened!!');
        //     $("#search_input_container").addClass("expanded");
        // });
        $('#q').bind('typeahead:selected', function(ev) {
            $("#search_form").submit();
        });
    }
});