# HG changeset patch # User ymh # Date 1272971738 -7200 # Node ID 526020c82fc3472a824503d1c3f2e6889da56dd2 # Parent 4a55e2fafdd592324079c3f5a08857ac22da88dd improve tag navigator. put the title of the next film in a tooltip diff -r 4a55e2fafdd5 -r 526020c82fc3 web/thdProject/apps/frontend/modules/reflex/actions/actions.class.php --- a/web/thdProject/apps/frontend/modules/reflex/actions/actions.class.php Mon May 03 17:53:28 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/reflex/actions/actions.class.php Tue May 04 13:15:38 2010 +0200 @@ -110,9 +110,18 @@ { $primaryKeys[] = $res['id']; } + + $films = array(); + if(!empty($primaryKeys)) { + $films_res = Doctrine::getTable('ThdFilm')->findByScoredId($primaryKeys); + foreach($films_res as $film) { + $films[] = $film->toArray(false); + } + } $this->getResponse()->setHttpHeader('Content-Type','application/json; charset=utf-8'); - return $this->renderText(json_encode($primaryKeys)); + return $this->renderText(json_encode($films)); + } diff -r 4a55e2fafdd5 -r 526020c82fc3 web/thdProject/apps/frontend/modules/tag/templates/_tagNavigator.php --- a/web/thdProject/apps/frontend/modules/tag/templates/_tagNavigator.php Mon May 03 17:53:28 2010 +0200 +++ b/web/thdProject/apps/frontend/modules/tag/templates/_tagNavigator.php Tue May 04 13:15:38 2010 +0200 @@ -11,6 +11,18 @@