diff options
| author | Paramjit Singh Sahota <psa@tinyerp.com> | 2014-02-21 11:42:36 +0530 |
|---|---|---|
| committer | Paramjit Singh Sahota <psa@tinyerp.com> | 2014-02-21 11:42:36 +0530 |
| commit | 2e49e46698c52edf29c7a42b1a67f8f2cb110e34 (patch) | |
| tree | 984fe7abbd67b6ab8ea19ed7e023e9d40dc311e6 /addons/website/static/lib/bootstrap | |
| parent | d5106a4d34a9b7c52a1ecad7c65331f1fda2e231 (diff) | |
[FIX] Fixed the sliding issue of carousel library in IE9. The transition was not working in any snippet
bzr revid: psa@tinyerp.com-20140221061236-7jcbgae7m081pjv8
Diffstat (limited to 'addons/website/static/lib/bootstrap')
| -rw-r--r-- | addons/website/static/lib/bootstrap/js/bootstrap.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/website/static/lib/bootstrap/js/bootstrap.js b/addons/website/static/lib/bootstrap/js/bootstrap.js index b22be6fce1d..2d31d0eb3c3 100644 --- a/addons/website/static/lib/bootstrap/js/bootstrap.js +++ b/addons/website/static/lib/bootstrap/js/bootstrap.js @@ -418,6 +418,17 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery" setTimeout(function () { that.$element.trigger('slid') }, 0) }) .emulateTransitionEnd(600) + } else if(this.$element.hasClass('slide')) { + this.$element.trigger(e) + if (e.isDefaultPrevented()) return + $active.animate({left: (direction == 'right' ? '100%' : '-100%')}, 600, function(){ + $active.removeClass('active') + that.sliding = false + setTimeout(function() { that.$element.trigger('slid')}, 0) + }) + $next.addClass(type).css({left: (direction == 'right' ? '-100%' : '100%')}).animate({left: 0}, 600, function() { + $next.removeClass(type).addClass('active') + }) } else { this.$element.trigger(e) if (e.isDefaultPrevented()) return |
