* Code for task #89907.
This commit is contained in:
@@ -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 : '';
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user