Fix type error

This commit is contained in:
yflory 2020-03-10 17:12:41 +01:00
parent e9e65ae23b
commit 342f0f741b
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ define([
frame.closeModal = function (cb) { frame.closeModal = function (cb) {
$frame.fadeOut(150, function () { $frame.fadeOut(150, function () {
$frame.detach(); $frame.detach();
cb(); if (typeof(cb) === "function") { cb(); }
}); });
}; };
return $frame.click(function (e) { return $frame.click(function (e) {

View File

@ -381,7 +381,7 @@ define([
} else { } else {
dataObject = kanban.getItemJSON(id); dataObject = kanban.getItemJSON(id);
} }
// Check if our itme has been deleted // Check if our item has been deleted
if (!dataObject) { if (!dataObject) {
var $frame = $(modal).parents('.alertify').first(); var $frame = $(modal).parents('.alertify').first();
if ($frame[0] && $frame[0].closeModal) { if ($frame[0] && $frame[0].closeModal) {