We could just have 

```
var query = History.getState().data.query;
$('.oae-list-options-search-query', $rootel).val(query);
```

in both functions. That's clearer to me, albeit more repetitive, but these 2 functions are repetitive already