From 609af00f307bb9c9cf9172bd2b4cb8df4ec5277e Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 3 Dec 2014 16:39:11 +0100 Subject: [PATCH] Set the overflow property using JS... --- modoboa/static/js/creation_wizard.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modoboa/static/js/creation_wizard.js b/modoboa/static/js/creation_wizard.js index 8cc767edf..ebf073599 100644 --- a/modoboa/static/js/creation_wizard.js +++ b/modoboa/static/js/creation_wizard.js @@ -47,6 +47,7 @@ if (this.options.transition_callbacks[resp.stepid] !== undefined) { this.options.transition_callbacks[resp.stepid](); } + $(".carousel-inner").css("overflow", "hidden"); this.$element.carousel('next'); } else { $("#modalbox").modal('hide'); @@ -75,6 +76,7 @@ }, update_buttons: function() { + $(".carousel-inner").css("overflow", "visible"); $('.bset.active').removeClass("active"); $("#" + $(".item.active").attr("id") + "_buttons").addClass("active"); }, @@ -90,6 +92,7 @@ prev: function(evt) { evt.preventDefault(); this.$element.on('slid.bs.carousel', this.update_buttons); + $(".carousel-inner").css("overflow", "hidden"); this.$element.carousel('prev'); this.set_current_title(this.titles[this.get_current_step_id()]); },