Made shown event compatiable with both Twitter Bootstrap 2.3.2 and 3.0.0