Skip to content
Snippets Groups Projects
Commit 70b87f4a authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch...

Merge branch 'hotline#61715_48h_abf_sur_penlignenet_les_images_dans_la_frise_chrono_sont_en_http_et_ne_s_affichent_pas' into 'stable'

hotline #61715 : fix timeline display from widget cache

See merge request !2197
parents 65cdbd06 8ced6197
Branches
Tags
4 merge requests!2334Master,!2199Master,!2198Hotline master,!2197hotline #61715 : fix timeline display from widget cache
Pipeline #1749 canceled with stage
......@@ -22,6 +22,12 @@ class ZendAfi_View_Helper_ListeNotices_Chrono extends ZendAfi_View_Helper_ListeN
protected static $_id_counter = 0;
protected $_timeline_path;
public function init() {
parent::init();
$this->_timeline_path = BASE_URL . '/public/opac/TimelineJS3-3.5.1/compiled/js/';
}
public function loadScript() {
Class_ScriptLoader::getInstance()
->addScript($this->_timeline_path . 'timeline-embed.js');
......@@ -29,8 +35,6 @@ class ZendAfi_View_Helper_ListeNotices_Chrono extends ZendAfi_View_Helper_ListeN
public function listeNotices_Chrono($data, $preferences=[]) {
$this->_timeline_path = BASE_URL . '/public/opac/TimelineJS3-3.5.1/compiled/js/';
$this->loadScript();
static::$_id_counter = static::$_id_counter + 1;
......
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