twitter/bootstrap — Issue #1618: setting options on modal shows it
Author: anuraguniyal
Created: 2012-02-02 18:04:17+00:00
State: open

I am using modal dialogs from bootstrap 2.0 and by default on setting the options it opens up the modal e.g.

``` javascript
$('#mymodal').modal({keyboard:true})
```

will open the dialog which is problematic because options are usually set once while loading the page and then at various place I show/hide dialog and I don't want to pass options around every-time, alternative are

1. hide the dialog after setting options, but will cause flicker
2. create a showMyModal function so that I set correct options every-time but that is unnecessary