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:
parent
3196603dde
commit
0274920d14
2 changed files with 20 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue