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

hotline #61715 : fix timeline display from widget cache

parent 65cdbd06
4 merge requests!2334Master,!2199Master,!2198Hotline master,!2197hotline #61715 : fix timeline display from widget cache
Pipeline #1746 passed with stage
in 19 minutes and 13 seconds
......@@ -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