This can be

```
$('#uploadnewversion-modal', $rootel).on('hidden', reset);
```