diff options
| author | 2012-10-22 22:11:23 +0200 | |
|---|---|---|
| committer | 2012-10-22 22:11:23 +0200 | |
| commit | a928ebf1d010433d81d3afe5a6981f7ca391b9c7 (patch) | |
| tree | 94cbb70710abf65c1e993b272bade0958e5b4e01 /app/controllers/entryController.php | |
| parent | 0426541acbeb44d240e6dbf7a93f3a104bea61b4 (diff) | |
ajout des touches de raccourcis et de tout le javascript
Diffstat (limited to 'app/controllers/entryController.php')
| -rwxr-xr-x | app/controllers/entryController.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/app/controllers/entryController.php b/app/controllers/entryController.php index e180cc7f1..9ae7bcd07 100755 --- a/app/controllers/entryController.php +++ b/app/controllers/entryController.php @@ -1,6 +1,19 @@ <?php class entryController extends ActionController { + public function firstAction () { + $ajax = Request::param ('ajax'); + if ($ajax) { + $this->view->_useLayout (false); + } + } + public function lastAction () { + $ajax = Request::param ('ajax'); + if (!$ajax) { + Request::forward (array (), true); + } + } + public function readAction () { $id = Request::param ('id'); $is_read = Request::param ('is_read'); @@ -26,8 +39,6 @@ class entryController extends ActionController { $entryDAO->updateEntry ($entry->id (), $values); } - - Request::forward (array (), true); } public function bookmarkAction () { @@ -52,7 +63,5 @@ class entryController extends ActionController { $entryDAO->updateEntry ($entry->id (), $values); } } - - Request::forward (array (), true); } } |
