From 6fc6140bec389d64a019551db16d9af4e4adcb37 Mon Sep 17 00:00:00 2001
From: gloas <gloas@git-test.afi-sa.fr>
Date: Wed, 25 Sep 2013 08:51:24 +0000
Subject: [PATCH] ajout script au tableau des exemplaires: toggleClass sur le
 bouton afficher toutes les editions de ce doc

---
 library/ZendAfi/View/Helper/Notice/Exemplaires.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/ZendAfi/View/Helper/Notice/Exemplaires.php b/library/ZendAfi/View/Helper/Notice/Exemplaires.php
index 1c81d64e2a2..087d47e9497 100644
--- a/library/ZendAfi/View/Helper/Notice/Exemplaires.php
+++ b/library/ZendAfi/View/Helper/Notice/Exemplaires.php
@@ -152,7 +152,7 @@ class ZendAfi_View_Helper_Notice_Exemplaires extends Zend_View_Helper_HtmlElemen
 		// lien pour exemplaires de la meme oeuvre
 		if($nb_notices_oeuvre)
 		{
-			$onclick="$('.exemplaires_oeuvre').slideToggle().load(baseUrl+'/opac/noticeajax/exemplaires?id_notice=".$ex["id_notice"]."&data=OEUVRE')";
+			$onclick="$('.exemplaires_oeuvre').slideToggle().load(baseUrl+'/opac/noticeajax/exemplaires?id_notice=".$ex["id_notice"]."&data=OEUVRE');$('.notice_bloc_titre b').toggleClass(function(){ if($('.exemplaires_oeuvre').is(':visible')) return 'opened_exemplaires_oeuvre';});";
 			$html.='<div class="notice_bloc_titre" onclick="'.$onclick.'">';
 			$html.=sprintf('<b>%s</b>', $this->_('Afficher toutes les éditions de ce document'));
 			$html.='</div>';
-- 
GitLab