* Finish task #5346.

This commit is contained in:
Yagami
2019-03-21 09:53:46 +08:00
parent 6afeb34bcc
commit 8c6015a5ea
2 changed files with 1 additions and 15 deletions
-14
View File
@@ -196,18 +196,4 @@ $(function()
});
return false;
});
$.extend({'closeModal':function(callback, location)
{
var ref = $('#triggerModal.modal').attr('ref');
if(ref.indexOf('export') > 0 && ref.indexOf('kanban') > 0)
{
$('#triggerModal').modal('hide');
}
else
{
kanbanModalTrigger.close();
}
if(callback && $.isFunction(callback)) callback();
}});
});
+1 -1
View File
@@ -239,7 +239,7 @@ class task extends control
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
/* Locate the browser. */
if(!empty($iframe)) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true));
if(!empty($iframe)) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent'));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $storyLink));
}