diff --git a/module/doc/control.php b/module/doc/control.php index e5fa1ca05b..cd7652dab0 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -1014,6 +1014,24 @@ class doc extends control $this->display(); } + /** + * 文档库排序 + * Doclib sorting. + * + * @access public + * @return void + */ + public function sortDoclib() + { + if($_POST) + { + foreach($_POST['orders'] as $id => $order) $this->doc->updateDocLibOrder($id, (int)$order); + + if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); + return $this->send(array('result' => 'success')); + } + } + /** * 目录排序 * Catalog sorting.