full functionality of media library now available using datatables, advanced search is not done.

This commit is contained in:
Naomi 2011-01-26 14:17:52 -05:00
parent a0ecbecf3b
commit f6d270616a
4 changed files with 80 additions and 13 deletions

View file

@ -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);