Skip to content
Snippets Groups Projects
Commit e220d6b0 authored by llaffont's avatar llaffont
Browse files

Amélioration animation changement pages dans les kiosque

parent cd583f92
No related merge requests found
......@@ -177,7 +177,11 @@ class ZendAfi_View_Helper_Accueil_Kiosque extends ZendAfi_View_Helper_Accueil_Ba
$previous_page = ($page > 1) ? $page - 1 : (int)(($nombre_total_notices + $nombre_notices_par_page)/ max($nombre_notices_par_page, 1));
$onclick = 'var contenu = $(this).parents(\'.contenu\');contenu.fadeOut();contenu.load($(this).attr(\'href\'), function(){contenu.fadeIn(); initializeNoticeMurAnimation()}); return false';
$onclick = 'var contenu = $(this).parents(\'.contenu\');'
.'contenu.animate({opacity:0});'
.'contenu.load($(this).attr(\'href\'), function(){contenu.animate({opacity:1}); initializeNoticeMurAnimation()});'
.'return false';
return '<div class="controls">'
.'<a href="'.$this->view->url(['controller' => 'java', 'action' => 'page', 'no' => $previous_page, 'id_module' => $this->id_module]).'" onclick="'.$onclick.'"></a>'
.'<a href="'.$this->view->url(['controller' => 'java', 'action' => 'page', 'no' => $next_page, 'id_module' => $this->id_module]).'" onclick="'.$onclick.'"></a>'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment