* Fix closeModal js.

This commit is contained in:
Yagami
2019-03-21 13:43:38 +08:00
parent 1523c62182
commit 6aa434a9ca
2 changed files with 1 additions and 21 deletions
-20
View File
@@ -3,26 +3,6 @@ $(function()
{
removeDitto();
if($('#batchCreateForm table thead tr th.c-name').width() < 200) $('#batchCreateForm table thead tr th.c-name').width(200);
$('#batchCreateForm').ajaxForm(
{
finish:function(response)
{
if(response.locate)
{
if(response.locate == 'parent')
{
parent.$.cookie('selfClose', 1);
setTimeout(function(){parent.$.closeModal(null, 'this')}, 1200);
}
else
{
setTimeout(function(){window.location.href = response.locate;}, 1200);
}
}
return false;
}
});
});
/* Get select of stories.*/