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

Adaptation affichage recherche mode mur pour compatibilité skin CASQY

parent c72ea623
No related merge requests found
......@@ -32,7 +32,7 @@ class ZendAfi_View_Helper_Notice_Mur extends Zend_View_Helper_HtmlElement {
return
'<div class="notice_wrapper"><div class="notice" data-id="'.$notice->getId().'">'
.$this->view->iconeSupport($notice->getTypeDoc())
.'<div>'.$this->view->iconeSupport($notice->getTypeDoc()).'</div>'
.$vignette
.'<div class="titre_auteur">'.$datas.'</div>'
.'</div></div>';
......
......@@ -303,21 +303,24 @@ function openIFrameDialog(url, title) {
function initializeNoticeMurAnimation() {
$(".liste_mur .notice_wrapper").mouseenter(function(){
var wrapper = $(this);
var thumbnail = wrapper.find('a img').add($(this).find('.nothumbnail_wrapper'));
var titre = wrapper.find('.titre_auteur');
thumbnail
.animate({top: wrapper.height() - titre.height() - thumbnail.height()}, 300)
.parents(".notice")
.css("overflow", "visible");
})
.mouseleave(function(){
var thumbnail = $(this).find('a img').add($(this).find('.nothumbnail_wrapper'));
if (initializeNoticeMurAnimation == undefined) {
var initializeNoticeMurAnimation = function() {
$(".liste_mur .notice_wrapper").mouseenter(function(){
var wrapper = $(this);
var thumbnail = wrapper.find('a img').add($(this).find('.nothumbnail_wrapper'));
var titre = wrapper.find('.titre_auteur');
thumbnail
.animate({top:0}, 100, 'swing', function(){
$(this).parents(".notice").css("overflow", "hidden")
});
});
.animate({top: wrapper.height() - titre.height() - thumbnail.height()}, 300)
.parents(".notice")
.css("overflow", "visible");
})
.mouseleave(function(){
var thumbnail = $(this).find('a img').add($(this).find('.nothumbnail_wrapper'));
thumbnail
.animate({top:0}, 100, 'swing', function(){
$(this).parents(".notice").css("overflow", "hidden")
});
});
}
}
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