From a928ebf1d010433d81d3afe5a6981f7ca391b9c7 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 22 Oct 2012 22:11:23 +0200 Subject: ajout des touches de raccourcis et de tout le javascript --- app/controllers/entryController.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'app/controllers/entryController.php') 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 @@ 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); } } -- cgit v1.2.3