This is also going to put focus in the searchbox which may not be what we want.  What you should probably do is move the code that does the actually clear from `$(".search-clear").on("click")` to its own function then call it from this handler and from the `$('search-clear').on('click')` handler.

```javascript

        function clearSearch() {
                $search.val("");
                views.forEach(function (view, index) {
                    view.filter("");
                });
        }     

          ...

          on("click", ".search-clear", function (e) {
                clearSearch(); 
                
                if (!updateSearchDisabled()) {
                    $search.focus();
                }
          });
```