* [task#124823,doing,0.5h] add sortDoclib.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user