mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
Fix a bug due to updating of bootstrap 3.2 - Subsitute "show" with "show.bs.modal"
This commit is contained in:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user