1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +02:00

add relatedTarget to carousel slide event

This commit is contained in:
Jacob Thornton
2012-06-02 18:06:00 -07:00
parent 037107480d
commit 806a82ef83
6 changed files with 26 additions and 6 deletions

View File

@@ -90,7 +90,9 @@
, direction = type == 'next' ? 'left' : 'right'
, fallback = type == 'next' ? 'first' : 'last'
, that = this
, e = $.Event('slide')
, e = $.Event('slide', {
relatedTarget: $next[0]
})
this.sliding = true

View File

@@ -334,7 +334,9 @@
, direction = type == 'next' ? 'left' : 'right'
, fallback = type == 'next' ? 'first' : 'last'
, that = this
, e = $.Event('slide')
, e = $.Event('slide', {
relatedTarget: $next[0]
})
this.sliding = true

File diff suppressed because one or more lines are too long

View File

@@ -884,7 +884,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
<td>html</td>
<td>boolean</td>
<td>true</td>
<td>Insert html into the tooltip. If false, jquery's <code>text</code> method will be used to insert content into the dom. Use text if you're worried about XSS attacks.</td>
<td>Insert html into the popover. If false, jquery's <code>text</code> method will be used to insert content into the dom. Use text if you're worried about XSS attacks.</td>
</tr>
<tr>
<td>placement</td>