Make dialog 'x' buttons work with Bootstrap 2

@gruehle