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

Merge remote-tracking branch 'refs/remotes/afi/stable' into afi-hotline-master

# Conflicts:
#	VERSIONS
#	library/startup.php
parents 2fdfdf51 70b87f4a
Branches
Tags
3 merge requests!2334Master,!2199Master,!2198Hotline master
Pipeline #1750 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