From 2172e2ea8a79f8c5d43863d83ff31b50abb391a0 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 18 Nov 2013 19:28:37 -0800 Subject: [PATCH] fix #11089: document modal show+shown events' relatedTarget property --- javascript.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/javascript.html b/javascript.html index 06a0bd021b..06a5f45700 100644 --- a/javascript.html +++ b/javascript.html @@ -328,11 +328,11 @@ $('#myModal').modal({ show.bs.modal - This event fires immediately when the show instance method is called. + This event fires immediately when the show instance method is called. If caused by a click, the clicked element is available as the relatedTarget property of the event. shown.bs.modal - This event is fired when the modal has been made visible to the user (will wait for CSS transitions to complete). + 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 relatedTarget property of the event. hide.bs.modal @@ -346,8 +346,8 @@ $('#myModal').modal({ {% highlight js %} -$('#myModal').on('hidden.bs.modal', function () { - // do something… +$('#myModal').on('hidden.bs.modal', function (e) { + // do something... }) {% endhighlight %} -- 2.47.2