DRY up Bootstrap.ModalPane#click() method