mirror of https://github.com/twbs/bootstrap.git
				
				
				
			Merge branch '2.1.2-wip' of github.com:twitter/bootstrap into 2.1.2-wip
This commit is contained in:
		
						commit
						24e277b85a
					
				|  | @ -4985,22 +4985,6 @@ input[type="submit"].btn.btn-mini { | ||||||
|   background-color: #fff; |   background-color: #fff; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .modal-open .modal .dropdown-menu { |  | ||||||
|   z-index: 2050; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .modal-open .modal .dropdown.open { |  | ||||||
|   *z-index: 2050; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .modal-open .modal .popover { |  | ||||||
|   z-index: 2060; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .modal-open .modal .tooltip { |  | ||||||
|   z-index: 2080; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .modal-backdrop { | .modal-backdrop { | ||||||
|   position: fixed; |   position: fixed; | ||||||
|   top: 0; |   top: 0; | ||||||
|  |  | ||||||
|  | @ -28,7 +28,9 @@ | ||||||
| 
 | 
 | ||||||
|   var Affix = function (element, options) { |   var Affix = function (element, options) { | ||||||
|     this.options = $.extend({}, $.fn.affix.defaults, options) |     this.options = $.extend({}, $.fn.affix.defaults, options) | ||||||
|     this.$window = $(window).on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) |     this.$window = $(window) | ||||||
|  |       .on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) | ||||||
|  |       .on('click.affix.data-api',  $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this)) | ||||||
|     this.$element = $(element) |     this.$element = $(element) | ||||||
|     this.checkPosition() |     this.checkPosition() | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  | @ -49,8 +49,6 @@ | ||||||
| 
 | 
 | ||||||
|         if (this.isShown || e.isDefaultPrevented()) return |         if (this.isShown || e.isDefaultPrevented()) return | ||||||
| 
 | 
 | ||||||
|         $('body').addClass('modal-open') |  | ||||||
| 
 |  | ||||||
|         this.isShown = true |         this.isShown = true | ||||||
| 
 | 
 | ||||||
|         this.escape() |         this.escape() | ||||||
|  | @ -96,8 +94,6 @@ | ||||||
| 
 | 
 | ||||||
|         this.isShown = false |         this.isShown = false | ||||||
| 
 | 
 | ||||||
|         $('body').removeClass('modal-open') |  | ||||||
| 
 |  | ||||||
|         this.escape() |         this.escape() | ||||||
| 
 | 
 | ||||||
|         $(document).off('focusin.modal') |         $(document).off('focusin.modal') | ||||||
|  |  | ||||||
|  | @ -121,7 +121,7 @@ | ||||||
|         $tip |         $tip | ||||||
|           .remove() |           .remove() | ||||||
|           .css({ top: 0, left: 0, display: 'block' }) |           .css({ top: 0, left: 0, display: 'block' }) | ||||||
|           .appendTo(inside ? this.$element : document.body) |           .insertAfter(this.$element) | ||||||
| 
 | 
 | ||||||
|         pos = this.getPosition(inside) |         pos = this.getPosition(inside) | ||||||
| 
 | 
 | ||||||
|  | @ -144,7 +144,7 @@ | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         $tip |         $tip | ||||||
|           .css(tp) |           .offset(tp) | ||||||
|           .addClass(placement) |           .addClass(placement) | ||||||
|           .addClass('in') |           .addClass('in') | ||||||
|       } |       } | ||||||
|  | @ -269,7 +269,7 @@ | ||||||
|   , trigger: 'hover' |   , trigger: 'hover' | ||||||
|   , title: '' |   , title: '' | ||||||
|   , delay: 0 |   , delay: 0 | ||||||
|   , html: true |   , html: false | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| }(window.jQuery); | }(window.jQuery); | ||||||
|  | @ -773,8 +773,6 @@ | ||||||
| 
 | 
 | ||||||
|         if (this.isShown || e.isDefaultPrevented()) return |         if (this.isShown || e.isDefaultPrevented()) return | ||||||
| 
 | 
 | ||||||
|         $('body').addClass('modal-open') |  | ||||||
| 
 |  | ||||||
|         this.isShown = true |         this.isShown = true | ||||||
| 
 | 
 | ||||||
|         this.escape() |         this.escape() | ||||||
|  | @ -820,8 +818,6 @@ | ||||||
| 
 | 
 | ||||||
|         this.isShown = false |         this.isShown = false | ||||||
| 
 | 
 | ||||||
|         $('body').removeClass('modal-open') |  | ||||||
| 
 |  | ||||||
|         this.escape() |         this.escape() | ||||||
| 
 | 
 | ||||||
|         $(document).off('focusin.modal') |         $(document).off('focusin.modal') | ||||||
|  | @ -1083,7 +1079,7 @@ | ||||||
|         $tip |         $tip | ||||||
|           .remove() |           .remove() | ||||||
|           .css({ top: 0, left: 0, display: 'block' }) |           .css({ top: 0, left: 0, display: 'block' }) | ||||||
|           .appendTo(inside ? this.$element : document.body) |           .insertAfter(this.$element) | ||||||
| 
 | 
 | ||||||
|         pos = this.getPosition(inside) |         pos = this.getPosition(inside) | ||||||
| 
 | 
 | ||||||
|  | @ -1106,7 +1102,7 @@ | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         $tip |         $tip | ||||||
|           .css(tp) |           .offset(tp) | ||||||
|           .addClass(placement) |           .addClass(placement) | ||||||
|           .addClass('in') |           .addClass('in') | ||||||
|       } |       } | ||||||
|  | @ -1231,11 +1227,10 @@ | ||||||
|   , trigger: 'hover' |   , trigger: 'hover' | ||||||
|   , title: '' |   , title: '' | ||||||
|   , delay: 0 |   , delay: 0 | ||||||
|   , html: true |   , html: false | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| }(window.jQuery); | }(window.jQuery);/* =========================================================== | ||||||
| /* =========================================================== |  | ||||||
|  * bootstrap-popover.js v2.1.2 |  * bootstrap-popover.js v2.1.2 | ||||||
|  * http://twitter.github.com/bootstrap/javascript.html#popovers
 |  * http://twitter.github.com/bootstrap/javascript.html#popovers
 | ||||||
|  * =========================================================== |  * =========================================================== | ||||||
|  | @ -1960,7 +1955,9 @@ | ||||||
| 
 | 
 | ||||||
|   var Affix = function (element, options) { |   var Affix = function (element, options) { | ||||||
|     this.options = $.extend({}, $.fn.affix.defaults, options) |     this.options = $.extend({}, $.fn.affix.defaults, options) | ||||||
|     this.$window = $(window).on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) |     this.$window = $(window) | ||||||
|  |       .on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) | ||||||
|  |       .on('click.affix.data-api',  $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this)) | ||||||
|     this.$element = $(element) |     this.$element = $(element) | ||||||
|     this.checkPosition() |     this.checkPosition() | ||||||
|   } |   } | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -506,8 +506,8 @@ $('#myModal').on('hidden', function () { | ||||||
|           <p><em>None</em></p> |           <p><em>None</em></p> | ||||||
| 
 | 
 | ||||||
|           <h3>Methods</h3> |           <h3>Methods</h3> | ||||||
|           <h4>$().dropdown()</h4> |           <h4>$().dropdown('toggle')</h4> | ||||||
|           <p>A programatic api for activating menus for a given navbar or tabbed navigation.</p> |           <p>A programatic api for toggling menus for a given navbar or tabbed navigation.</p> | ||||||
|         </section> |         </section> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -804,7 +804,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) { | ||||||
|              <tr> |              <tr> | ||||||
|                <td>html</td> |                <td>html</td> | ||||||
|                <td>boolean</td> |                <td>boolean</td> | ||||||
|                <td>true</td> |                <td>false</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 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> | ||||||
|              </tr> |              </tr> | ||||||
|              <tr> |              <tr> | ||||||
|  | @ -964,7 +964,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) { | ||||||
|            <tr> |            <tr> | ||||||
|              <td>html</td> |              <td>html</td> | ||||||
|              <td>boolean</td> |              <td>boolean</td> | ||||||
|              <td>true</td> |              <td>false</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> |              <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> | ||||||
|            <tr> |            <tr> | ||||||
|  |  | ||||||
|  | @ -436,8 +436,8 @@ $('#myModal').on('hidden', function () { | ||||||
|           <p><em>{{_i}}None{{/i}}</em></p> |           <p><em>{{_i}}None{{/i}}</em></p> | ||||||
| 
 | 
 | ||||||
|           <h3>{{_i}}Methods{{/i}}</h3> |           <h3>{{_i}}Methods{{/i}}</h3> | ||||||
|           <h4>$().dropdown()</h4> |           <h4>$().dropdown('toggle')</h4> | ||||||
|           <p>{{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}</p> |           <p>{{_i}}A programatic api for toggling menus for a given navbar or tabbed navigation.{{/i}}</p> | ||||||
|         </section> |         </section> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -734,7 +734,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) { | ||||||
|              <tr> |              <tr> | ||||||
|                <td>{{_i}}html{{/i}}</td> |                <td>{{_i}}html{{/i}}</td> | ||||||
|                <td>{{_i}}boolean{{/i}}</td> |                <td>{{_i}}boolean{{/i}}</td> | ||||||
|                <td>true</td> |                <td>false</td> | ||||||
|                <td>{{_i}}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.{{/i}}</td> |                <td>{{_i}}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.{{/i}}</td> | ||||||
|              </tr> |              </tr> | ||||||
|              <tr> |              <tr> | ||||||
|  | @ -894,7 +894,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) { | ||||||
|            <tr> |            <tr> | ||||||
|              <td>{{_i}}html{{/i}}</td> |              <td>{{_i}}html{{/i}}</td> | ||||||
|              <td>{{_i}}boolean{{/i}}</td> |              <td>{{_i}}boolean{{/i}}</td> | ||||||
|              <td>true</td> |              <td>false</td> | ||||||
|              <td>{{_i}}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.{{/i}}</td> |              <td>{{_i}}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.{{/i}}</td> | ||||||
|            </tr> |            </tr> | ||||||
|            <tr> |            <tr> | ||||||
|  |  | ||||||
|  | @ -28,7 +28,9 @@ | ||||||
| 
 | 
 | ||||||
|   var Affix = function (element, options) { |   var Affix = function (element, options) { | ||||||
|     this.options = $.extend({}, $.fn.affix.defaults, options) |     this.options = $.extend({}, $.fn.affix.defaults, options) | ||||||
|     this.$window = $(window).on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) |     this.$window = $(window) | ||||||
|  |       .on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) | ||||||
|  |       .on('click.affix.data-api',  $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this)) | ||||||
|     this.$element = $(element) |     this.$element = $(element) | ||||||
|     this.checkPosition() |     this.checkPosition() | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  | @ -49,8 +49,6 @@ | ||||||
| 
 | 
 | ||||||
|         if (this.isShown || e.isDefaultPrevented()) return |         if (this.isShown || e.isDefaultPrevented()) return | ||||||
| 
 | 
 | ||||||
|         $('body').addClass('modal-open') |  | ||||||
| 
 |  | ||||||
|         this.isShown = true |         this.isShown = true | ||||||
| 
 | 
 | ||||||
|         this.escape() |         this.escape() | ||||||
|  | @ -96,8 +94,6 @@ | ||||||
| 
 | 
 | ||||||
|         this.isShown = false |         this.isShown = false | ||||||
| 
 | 
 | ||||||
|         $('body').removeClass('modal-open') |  | ||||||
| 
 |  | ||||||
|         this.escape() |         this.escape() | ||||||
| 
 | 
 | ||||||
|         $(document).off('focusin.modal') |         $(document).off('focusin.modal') | ||||||
|  |  | ||||||
|  | @ -121,7 +121,7 @@ | ||||||
|         $tip |         $tip | ||||||
|           .remove() |           .remove() | ||||||
|           .css({ top: 0, left: 0, display: 'block' }) |           .css({ top: 0, left: 0, display: 'block' }) | ||||||
|           .appendTo(inside ? this.$element : document.body) |           .insertAfter(this.$element) | ||||||
| 
 | 
 | ||||||
|         pos = this.getPosition(inside) |         pos = this.getPosition(inside) | ||||||
| 
 | 
 | ||||||
|  | @ -144,7 +144,7 @@ | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         $tip |         $tip | ||||||
|           .css(tp) |           .offset(tp) | ||||||
|           .addClass(placement) |           .addClass(placement) | ||||||
|           .addClass('in') |           .addClass('in') | ||||||
|       } |       } | ||||||
|  | @ -269,7 +269,7 @@ | ||||||
|   , trigger: 'hover' |   , trigger: 'hover' | ||||||
|   , title: '' |   , title: '' | ||||||
|   , delay: 0 |   , delay: 0 | ||||||
|   , html: true |   , html: false | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| }(window.jQuery); | }(window.jQuery); | ||||||
|  | @ -37,10 +37,11 @@ $(function () { | ||||||
|         tooltip.tooltip('hide') |         tooltip.tooltip('hide') | ||||||
|       }) |       }) | ||||||
| 
 | 
 | ||||||
|       test("should always allow html entities", function () { |       test("should allow html entities", function () { | ||||||
|         $.support.transition = false |         $.support.transition = false | ||||||
|         var tooltip = $('<a href="#" rel="tooltip" title="<b>@fat</b>"></a>') |         var tooltip = $('<a href="#" rel="tooltip" title="<b>@fat</b>"></a>') | ||||||
|           .appendTo('#qunit-fixture') |           .appendTo('#qunit-fixture') | ||||||
|  |           .tooltip({html: true}) | ||||||
|           .tooltip('show') |           .tooltip('show') | ||||||
| 
 | 
 | ||||||
|         ok($('.tooltip b').length, 'b tag was inserted') |         ok($('.tooltip b').length, 'b tag was inserted') | ||||||
|  |  | ||||||
|  | @ -2,16 +2,6 @@ | ||||||
| // Modals | // Modals | ||||||
| // -------------------------------------------------- | // -------------------------------------------------- | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| // Recalculate z-index where appropriate, |  | ||||||
| // but only apply to elements within modal |  | ||||||
| .modal-open .modal { |  | ||||||
|   .dropdown-menu {  z-index: @zindexDropdown + @zindexModal; } |  | ||||||
|   .dropdown.open { *z-index: @zindexDropdown + @zindexModal; } |  | ||||||
|   .popover       {  z-index: @zindexPopover  + @zindexModal; } |  | ||||||
|   .tooltip       {  z-index: @zindexTooltip  + @zindexModal; } |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| // Background | // Background | ||||||
| .modal-backdrop { | .modal-backdrop { | ||||||
|   position: fixed; |   position: fixed; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue