Restore datatables-library from server on login

When localStorage is empty we try getting the data from the server. This is a bit hacky since the ui uses a very old version of datatables.
This commit is contained in:
Lucas Bickel 2017-03-24 16:21:39 +01:00
parent 3196603dde
commit 0274920d14
2 changed files with 20 additions and 6 deletions

View file

@ -47,7 +47,9 @@ class UsersettingsController extends Zend_Controller_Action
{
$data = Application_Model_Preference::getCurrentLibraryTableSetting();
if (!is_null($data)) {
$this->view->settings = $data;
$this->_helper->json($data);
} else {
$this->_helper->json(false);
}
}