Fix for #1410: Do not set input focus if search is disabled (i.e. input is offscreen)
Bootstrap Modal correction in jquery
Bootstrap Modal correction in Prototype