* Code for task #89907.

This commit is contained in:
tianshujie
2023-04-04 16:18:51 +08:00
parent d5677a6690
commit 6950f375d1
2 changed files with 1 additions and 14 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ class api extends control
$this->api->publishLib($data);
if(dao::isError()) return $this->sendError(dao::getError());
return $this->sendSuccess(array('locate' => $this->createLink('api', 'index', "libID=$libID")));
return $this->sendSuccess(array('locate' => 'parent'));
}
$libName = isset($lib->name) ? $lib->name : '';
-13
View File
@@ -1,13 +0,0 @@
$(document).ready(function()
{
$('#apiForm').ajaxForm({
success: (data) => {
if (data.result == 'success') {
if (data.locate) {
window.parent.location.href = data.locate
}
$.zui.closeModal()
}
}
})
});