diff options
| author | Mark Otto <[email protected]> | 2012-02-26 23:16:11 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-26 23:16:11 -0800 |
| commit | 1a781a707e0785a1abd079a9c29628b0d8d1867d (patch) | |
| tree | a38c6b8485d24e8df50ede805084ba083e2df9a0 /docs | |
| parent | ccf7697185488850e7450bfb05092bebc2004084 (diff) | |
| parent | 43760eb2029c73b6be6b0dbeb753be1e247697d9 (diff) | |
| download | bootstrap-1a781a707e0785a1abd079a9c29628b0d8d1867d.tar.xz bootstrap-1a781a707e0785a1abd079a9c29628b0d8d1867d.zip | |
Merge branch '2.0.2-wip' of github.com:twitter/bootstrap into 2.0.2-wip
Conflicts:
docs/assets/bootstrap.zip
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/bootstrap.zip | bin | 54489 -> 54570 bytes | |||
| -rw-r--r-- | docs/assets/js/bootstrap-carousel.js | 4 | ||||
| -rw-r--r-- | docs/assets/js/bootstrap-tooltip.js | 2 | ||||
| -rw-r--r-- | docs/javascript.html | 6 | ||||
| -rw-r--r-- | docs/templates/pages/javascript.mustache | 6 |
5 files changed, 17 insertions, 1 deletions
diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip Binary files differindex 7a9438480..63f92b76f 100644 --- a/docs/assets/bootstrap.zip +++ b/docs/assets/bootstrap.zip diff --git a/docs/assets/js/bootstrap-carousel.js b/docs/assets/js/bootstrap-carousel.js index aef98fb05..e0091a7d0 100644 --- a/docs/assets/js/bootstrap-carousel.js +++ b/docs/assets/js/bootstrap-carousel.js @@ -29,6 +29,9 @@ this.$element = $(element) this.options = $.extend({}, $.fn.carousel.defaults, options) this.options.slide && this.slide(this.options.slide) + this.options.pause == 'hover' && this.$element + .on('mouseenter', $.proxy(this.pause, this)) + .on('mouseleave', $.proxy(this.cycle, this)) } Carousel.prototype = { @@ -136,6 +139,7 @@ $.fn.carousel.defaults = { interval: 5000 + , pause: 'hover' } $.fn.carousel.Constructor = Carousel diff --git a/docs/assets/js/bootstrap-tooltip.js b/docs/assets/js/bootstrap-tooltip.js index d76e51e8c..e7bfd09bf 100644 --- a/docs/assets/js/bootstrap-tooltip.js +++ b/docs/assets/js/bootstrap-tooltip.js @@ -206,7 +206,7 @@ title = $e.attr('data-original-title') || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title) - title = title.toString().replace(/(^\s*|\s*$)/, "") + title = (title || '').toString().replace(/(^\s*|\s*$)/, "") return title } diff --git a/docs/javascript.html b/docs/javascript.html index 4f40934f7..c64a85b53 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1310,6 +1310,12 @@ $('#myCollapsible').on('hidden', function () { <td>5000</td> <td>The amount of time to delay between automatically cycling an item.</td> </tr> + <tr> + <td>pause</td> + <td>string</td> + <td>"hover"</td> + <td>Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.</td> + </tr> </tbody> </table> <h3>Markup</h3> diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index aa3a280f4..c88b4296a 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1234,6 +1234,12 @@ $('#myCollapsible').on('hidden', function () { <td>5000</td> <td>{{_i}}The amount of time to delay between automatically cycling an item.{{/i}}</td> </tr> + <tr> + <td>{{_i}}pause{{/i}}</td> + <td>{{_i}}string{{/i}}</td> + <td>"hover"</td> + <td>{{_i}}Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.{{/i}}</td> + </tr> </tbody> </table> <h3>{{_i}}Markup{{/i}}</h3> |
