full functionality of media library now available using datatables, advanced search is not done.
This commit is contained in:
parent
a0ecbecf3b
commit
f6d270616a
4 changed files with 80 additions and 13 deletions
|
@ -133,11 +133,12 @@ class LibraryController extends Zend_Controller_Action
|
|||
$echo = $this->_getParam('sEcho');
|
||||
$offset = $this->_getParam('iDisplayStart');
|
||||
$limit = $this->_getParam('iDisplayLength');
|
||||
$post = $this->getRequest()->getPost();
|
||||
|
||||
if($format == "json") {
|
||||
|
||||
$datatables = array("sEcho" => $echo);
|
||||
$files = StoredFile::searchFiles($offset, $limit);
|
||||
$files = StoredFile::searchFiles($offset, $limit, $post);
|
||||
|
||||
$datatables = array_merge($datatables, $files);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue