From ff5b524fa189f31125e12041b0ded2bbe43916c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Solard?= Date: Fri, 25 Jul 2014 10:34:29 +0200 Subject: [PATCH] Fix a bug due to updating of bootstrap 3.2 - Subsitute "show" with "show.bs.modal" --- modoboa/static/js/global.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modoboa/static/js/global.js b/modoboa/static/js/global.js index ae8478b2d..7552d7519 100644 --- a/modoboa/static/js/global.js +++ b/modoboa/static/js/global.js @@ -40,7 +40,7 @@ function modalbox(e, css, defhref, defcb, defclosecb) { }); $div.modal({show: false}); - $div.one('shown', function() { + $div.one('shown.bs.modal', function() { $(".help").popover({ container: "#modalbox", trigger: "hover" @@ -48,7 +48,7 @@ function modalbox(e, css, defhref, defcb, defclosecb) { if (modalcb != undefined) { if (typeof modalcb === "function") modalcb(); else eval(modalcb + '()'); } - }).on('hidden', function(e) { + }).on('hidden.bs.modal', function(e) { var $target = $(e.target); if (!$target.is($(this))) {