Fix type error
This commit is contained in:
parent
e9e65ae23b
commit
342f0f741b
@ -198,7 +198,7 @@ define([
|
||||
frame.closeModal = function (cb) {
|
||||
$frame.fadeOut(150, function () {
|
||||
$frame.detach();
|
||||
cb();
|
||||
if (typeof(cb) === "function") { cb(); }
|
||||
});
|
||||
};
|
||||
return $frame.click(function (e) {
|
||||
|
||||
@ -381,7 +381,7 @@ define([
|
||||
} else {
|
||||
dataObject = kanban.getItemJSON(id);
|
||||
}
|
||||
// Check if our itme has been deleted
|
||||
// Check if our item has been deleted
|
||||
if (!dataObject) {
|
||||
var $frame = $(modal).parents('.alertify').first();
|
||||
if ($frame[0] && $frame[0].closeModal) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user