Skip to content

Commit

Permalink
rake convert
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Apr 21, 2014
1 parent 83584d7 commit 0d25afc
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/bootstrap-sass/version.rb
@@ -1,4 +1,4 @@
module Bootstrap
VERSION = '3.1.1.1'
BOOTSTRAP_SHA = '573ad10a9dba52e4a6f059e63b667f4034ad2b39'
BOOTSTRAP_SHA = '9c4afc577253ada54d3ff27965e380a5c9f4e60e'
end
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/bootstrap/button.js
Expand Up @@ -97,7 +97,7 @@
// BUTTON DATA-API
// ===============

$(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) {
$(document).on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) {
var $btn = $(e.target)
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
$btn.button('toggle')
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/bootstrap/collapse.js
Expand Up @@ -63,7 +63,7 @@
}
this.$element
.removeClass('collapsing')
.addClass('collapse in')[dimension]('auto')
.addClass('collapse in')[dimension]('')
this.transitioning = 0
this.$element.trigger('shown.bs.collapse')
}
Expand Down
1 change: 1 addition & 0 deletions vendor/assets/javascripts/bootstrap/dropdown.js
Expand Up @@ -83,6 +83,7 @@
}

function clearMenus(e) {
if (e && e.which === 3) return
$(backdrop).remove()
$(toggle).each(function () {
var $parent = getParent($(this))
Expand Down
10 changes: 7 additions & 3 deletions vendor/assets/javascripts/bootstrap/modal.js
Expand Up @@ -145,7 +145,6 @@
var that = this
this.$element.hide()
this.backdrop(function () {
that.removeBackdrop()
that.$element.trigger('hidden.bs.modal')
})
}
Expand All @@ -156,6 +155,7 @@
}

Modal.prototype.backdrop = function (callback) {
var that = this
var animate = this.$element.hasClass('fade') ? 'fade' : ''

if (this.isShown && this.options.backdrop) {
Expand Down Expand Up @@ -186,11 +186,15 @@
} else if (!this.isShown && this.$backdrop) {
this.$backdrop.removeClass('in')

var callbackRemove = function() {
that.removeBackdrop()
callback && callback()
}
$.support.transition && this.$element.hasClass('fade') ?
this.$backdrop
.one($.support.transition.end, callback)
.one($.support.transition.end, callbackRemove)
.emulateTransitionEnd(150) :
callback()
callbackRemove()

} else if (callback) {
callback()
Expand Down
16 changes: 10 additions & 6 deletions vendor/assets/stylesheets/bootstrap/_variables.scss
Expand Up @@ -240,7 +240,7 @@ $dropdown-link-disabled-color: $gray-light !default;
//** Text color for headers within dropdown menus.
$dropdown-header-color: $gray-light !default;

// Note: Deprecated $dropdown-caret-color as of v3.1.0
//** Deprecated `$dropdown-caret-color` as of v3.1.0
$dropdown-caret-color: #000 !default;


Expand All @@ -265,28 +265,32 @@ $zindex-modal: 1050 !default;
//## Define the breakpoints at which your layout will change, adapting to different screen sizes.

// Extra small screen / phone
// Note: Deprecated $screen-xs and $screen-phone as of v3.0.1
// Note: Deprecated $screen-xs-min as of v3.2.0
//** Deprecated `$screen-xs` as of v3.0.1
$screen-xs: 480px !default;
//** Deprecated `$screen-xs-min` as of v3.2.0
$screen-xs-min: $screen-xs !default;
//** Deprecated `$screen-phone` as of v3.0.1
$screen-phone: $screen-xs-min !default;

// Small screen / tablet
// Note: Deprecated $screen-sm and $screen-tablet as of v3.0.1
//** Deprecated `$screen-sm` as of v3.0.1
$screen-sm: 768px !default;
$screen-sm-min: $screen-sm !default;
//** Deprecated `$screen-tablet` as of v3.0.1
$screen-tablet: $screen-sm-min !default;

// Medium screen / desktop
// Note: Deprecated $screen-md and $screen-desktop as of v3.0.1
//** Deprecated `$screen-md` as of v3.0.1
$screen-md: 992px !default;
$screen-md-min: $screen-md !default;
//** Deprecated `$screen-desktop` as of v3.0.1
$screen-desktop: $screen-md-min !default;

// Large screen / wide desktop
// Note: Deprecated $screen-lg and $screen-lg-desktop as of v3.0.1
//** Deprecated `$screen-lg` as of v3.0.1
$screen-lg: 1200px !default;
$screen-lg-min: $screen-lg !default;
//** Deprecated `$screen-lg-desktop` as of v3.0.1
$screen-lg-desktop: $screen-lg-min !default;

// So media queries don't overlap when required, provide a maximum
Expand Down

0 comments on commit 0d25afc

Please sign in to comment.