2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03: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
+3 -1
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
+3 -1
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
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
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>