Commit 0707c0cd authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #67202 fix lightbox id

parent d4e5d9e9
- ticket #67202 : Titres remplacés par d'autres titres dans Bokeh : urgent SVP
\ No newline at end of file
......@@ -135,13 +135,16 @@ class ZendAfi_View_Helper_Notice_VignetteStrategyView
if(Class_WebService_Vignette::NO_DATA == $this->_record->getUrlImage())
return parent::_renderThumbnail();
$id = 'vignette_' . $this->_record->getId();
Class_ScriptLoader::getInstance()
->loadButterflyLightbox()
->addJQueryReady('$("a#vignette").butterfly({closeButton:false});');
->addJQueryReady(sprintf('$("a#%s").butterfly({closeButton:false});',
$id));
return $this->view->tagAnchor($this->view->absoluteUrl($this->_fetchUrl()),
$this->_renderImage(),
['id' => 'vignette',
['id' => $id,
'title' => htmlentities($this->_record->getTitrePrincipal())]);
}
......
Markdown is supported
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