Fix a bug due to updating of bootstrap 3.2 - Subsitute "show" with "show.bs.modal"

This commit is contained in:
Maël Solard
2014-08-07 18:38:41 +02:00
parent 92cb0468bc
commit ff5b524fa1
+2 -2
View File
@@ -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))) {