diff options
| author | Chris Rebert <[email protected]> | 2013-11-18 19:28:37 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2013-11-18 19:29:08 -0800 |
| commit | 2172e2ea8a79f8c5d43863d83ff31b50abb391a0 (patch) | |
| tree | 2aff17c27ad6e67a47bb278d7436d5202e1ee222 /javascript.html | |
| parent | 446f2325a6e4f730939e0fa3e12ba1f5fc53f27f (diff) | |
| download | bootstrap-2172e2ea8a79f8c5d43863d83ff31b50abb391a0.tar.xz bootstrap-2172e2ea8a79f8c5d43863d83ff31b50abb391a0.zip | |
fix #11089: document modal show+shown events' relatedTarget property
Diffstat (limited to 'javascript.html')
| -rw-r--r-- | javascript.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/javascript.html b/javascript.html index 06a0bd021..06a5f4570 100644 --- a/javascript.html +++ b/javascript.html @@ -328,11 +328,11 @@ $('#myModal').modal({ <tbody> <tr> <td>show.bs.modal</td> - <td>This event fires immediately when the <code>show</code> instance method is called.</td> + <td>This event fires immediately when the <code>show</code> instance method is called. If caused by a click, the clicked element is available as the <code>relatedTarget</code> property of the event.</td> </tr> <tr> <td>shown.bs.modal</td> - <td>This event is fired when the modal has been made visible to the user (will wait for CSS transitions to complete).</td> + <td>This event is fired when the modal has been made visible to the user (will wait for CSS transitions to complete). If caused by a click, the clicked element is available as the <code>relatedTarget</code> property of the event.</td> </tr> <tr> <td>hide.bs.modal</td> @@ -346,8 +346,8 @@ $('#myModal').modal({ </table> </div><!-- /.table-responsive --> {% highlight js %} -$('#myModal').on('hidden.bs.modal', function () { - // do something… +$('#myModal').on('hidden.bs.modal', function (e) { + // do something... }) {% endhighlight %} </div> |
