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))) {