Fix type error

pull/1/head
yflory 5 years ago
parent e9e65ae23b
commit 342f0f741b

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

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

Loading…
Cancel
Save