mirror of https://github.com/twbs/bootstrap.git
				
				
				
			automatic grunt dist
This commit is contained in:
		
							parent
							
								
									200f6fb10d
								
							
						
					
					
						commit
						c1005f5283
					
				| 
						 | 
					@ -5730,7 +5730,7 @@ button.close {
 | 
				
			||||||
  right: 0;
 | 
					  right: 0;
 | 
				
			||||||
  bottom: 0;
 | 
					  bottom: 0;
 | 
				
			||||||
  left: 0;
 | 
					  left: 0;
 | 
				
			||||||
  z-index: 1040;
 | 
					  z-index: 1050;
 | 
				
			||||||
  display: none;
 | 
					  display: none;
 | 
				
			||||||
  overflow: hidden;
 | 
					  overflow: hidden;
 | 
				
			||||||
  -webkit-overflow-scrolling: touch;
 | 
					  -webkit-overflow-scrolling: touch;
 | 
				
			||||||
| 
						 | 
					@ -5773,10 +5773,12 @@ button.close {
 | 
				
			||||||
          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
 | 
					          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
.modal-backdrop {
 | 
					.modal-backdrop {
 | 
				
			||||||
  position: absolute;
 | 
					  position: fixed;
 | 
				
			||||||
  top: 0;
 | 
					  top: 0;
 | 
				
			||||||
  right: 0;
 | 
					  right: 0;
 | 
				
			||||||
 | 
					  bottom: 0;
 | 
				
			||||||
  left: 0;
 | 
					  left: 0;
 | 
				
			||||||
 | 
					  z-index: 1040;
 | 
				
			||||||
  background-color: #000;
 | 
					  background-color: #000;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
.modal-backdrop.fade {
 | 
					.modal-backdrop.fade {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
					@ -916,13 +916,15 @@ if (typeof jQuery === 'undefined') {
 | 
				
			||||||
  // ======================
 | 
					  // ======================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  var Modal = function (element, options) {
 | 
					  var Modal = function (element, options) {
 | 
				
			||||||
    this.options         = options
 | 
					    this.options             = options
 | 
				
			||||||
    this.$body           = $(document.body)
 | 
					    this.$body               = $(document.body)
 | 
				
			||||||
    this.$element        = $(element)
 | 
					    this.$element            = $(element)
 | 
				
			||||||
    this.$backdrop       = null
 | 
					    this.$dialog             = this.$element.find('.modal-dialog')
 | 
				
			||||||
    this.isShown         = null
 | 
					    this.$backdrop           = null
 | 
				
			||||||
    this.originalBodyPad = null
 | 
					    this.isShown             = null
 | 
				
			||||||
    this.scrollbarWidth  = 0
 | 
					    this.originalBodyPad     = null
 | 
				
			||||||
 | 
					    this.scrollbarWidth      = 0
 | 
				
			||||||
 | 
					    this.ignoreBackdropClick = false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (this.options.remote) {
 | 
					    if (this.options.remote) {
 | 
				
			||||||
      this.$element
 | 
					      this.$element
 | 
				
			||||||
| 
						 | 
					@ -967,6 +969,12 @@ if (typeof jQuery === 'undefined') {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
 | 
					    this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    this.$dialog.on('mousedown.dismiss.bs.modal', function () {
 | 
				
			||||||
 | 
					      that.$element.one('mouseup.dismiss.bs.modal', function (e) {
 | 
				
			||||||
 | 
					        if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.backdrop(function () {
 | 
					    this.backdrop(function () {
 | 
				
			||||||
      var transition = $.support.transition && that.$element.hasClass('fade')
 | 
					      var transition = $.support.transition && that.$element.hasClass('fade')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -978,7 +986,6 @@ if (typeof jQuery === 'undefined') {
 | 
				
			||||||
        .show()
 | 
					        .show()
 | 
				
			||||||
        .scrollTop(0)
 | 
					        .scrollTop(0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (that.options.backdrop) that.adjustBackdrop()
 | 
					 | 
				
			||||||
      that.adjustDialog()
 | 
					      that.adjustDialog()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (transition) {
 | 
					      if (transition) {
 | 
				
			||||||
| 
						 | 
					@ -994,7 +1001,7 @@ if (typeof jQuery === 'undefined') {
 | 
				
			||||||
      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
 | 
					      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      transition ?
 | 
					      transition ?
 | 
				
			||||||
        that.$element.find('.modal-dialog') // wait for modal to slide in
 | 
					        that.$dialog // wait for modal to slide in
 | 
				
			||||||
          .one('bsTransitionEnd', function () {
 | 
					          .one('bsTransitionEnd', function () {
 | 
				
			||||||
            that.$element.trigger('focus').trigger(e)
 | 
					            that.$element.trigger('focus').trigger(e)
 | 
				
			||||||
          })
 | 
					          })
 | 
				
			||||||
| 
						 | 
					@ -1023,6 +1030,9 @@ if (typeof jQuery === 'undefined') {
 | 
				
			||||||
      .removeClass('in')
 | 
					      .removeClass('in')
 | 
				
			||||||
      .attr('aria-hidden', true)
 | 
					      .attr('aria-hidden', true)
 | 
				
			||||||
      .off('click.dismiss.bs.modal')
 | 
					      .off('click.dismiss.bs.modal')
 | 
				
			||||||
 | 
					      .off('mouseup.dismiss.bs.modal')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    this.$dialog.off('mousedown.dismiss.bs.modal')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $.support.transition && this.$element.hasClass('fade') ?
 | 
					    $.support.transition && this.$element.hasClass('fade') ?
 | 
				
			||||||
      this.$element
 | 
					      this.$element
 | 
				
			||||||
| 
						 | 
					@ -1083,13 +1093,18 @@ if (typeof jQuery === 'undefined') {
 | 
				
			||||||
      var doAnimate = $.support.transition && animate
 | 
					      var doAnimate = $.support.transition && animate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
 | 
					      this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
 | 
				
			||||||
        .prependTo(this.$element)
 | 
					        .appendTo(this.$body)
 | 
				
			||||||
        .on('click.dismiss.bs.modal', $.proxy(function (e) {
 | 
					
 | 
				
			||||||
          if (e.target !== e.currentTarget) return
 | 
					      this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
 | 
				
			||||||
          this.options.backdrop == 'static'
 | 
					        if (this.ignoreBackdropClick) {
 | 
				
			||||||
            ? this.$element[0].focus.call(this.$element[0])
 | 
					          this.ignoreBackdropClick = false
 | 
				
			||||||
            : this.hide.call(this)
 | 
					          return
 | 
				
			||||||
        }, this))
 | 
					        }
 | 
				
			||||||
 | 
					        if (e.target !== e.currentTarget) return
 | 
				
			||||||
 | 
					        this.options.backdrop == 'static'
 | 
				
			||||||
 | 
					          ? this.$element[0].focus()
 | 
				
			||||||
 | 
					          : this.hide()
 | 
				
			||||||
 | 
					      }, this))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
 | 
					      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1124,16 +1139,9 @@ if (typeof jQuery === 'undefined') {
 | 
				
			||||||
  // these following methods are used to handle overflowing modals
 | 
					  // these following methods are used to handle overflowing modals
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Modal.prototype.handleUpdate = function () {
 | 
					  Modal.prototype.handleUpdate = function () {
 | 
				
			||||||
    if (this.options.backdrop) this.adjustBackdrop()
 | 
					 | 
				
			||||||
    this.adjustDialog()
 | 
					    this.adjustDialog()
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Modal.prototype.adjustBackdrop = function () {
 | 
					 | 
				
			||||||
    this.$backdrop
 | 
					 | 
				
			||||||
      .css('height', 0)
 | 
					 | 
				
			||||||
      .css('height', this.$element[0].scrollHeight)
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  Modal.prototype.adjustDialog = function () {
 | 
					  Modal.prototype.adjustDialog = function () {
 | 
				
			||||||
    var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
 | 
					    var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
		Reference in New Issue