I'd prefer the following to be more in line with other widgets:

```
// Lock the modal
$('#leavegroup-modal', $rootel).modal('lock');
// Disable the form elements to prevent repeat clicks
$('button, input', $rootel).prop('disabled', true);
```