mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-03 22:25:04 -04:00
Nouveau rafraîchissement automatique du nombre d'articles non lus + session Persona
Devrait aussi résoudre https://github.com/marienfressinaud/FreshRSS/issues/358 À tester
This commit is contained in:
@@ -3,11 +3,17 @@
|
||||
class FreshRSS_javascript_Controller extends Minz_ActionController {
|
||||
public function firstAction () {
|
||||
$this->view->_useLayout (false);
|
||||
header('Content-type: text/javascript');
|
||||
}
|
||||
|
||||
public function actualizeAction () {
|
||||
header('Content-Type: text/javascript; charset=UTF-8');
|
||||
$feedDAO = new FreshRSS_FeedDAO ();
|
||||
$this->view->feeds = $feedDAO->listFeeds ();
|
||||
}
|
||||
|
||||
public function nbUnreadsPerFeedAction() {
|
||||
header('Content-Type: application/json; charset=UTF-8');
|
||||
$catDAO = new FreshRSS_CategoryDAO();
|
||||
$this->view->categories = $catDAO->listCategories(true, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user