Move Javascript code

This commit is contained in:
Frederic Guillot
2017-04-01 15:18:22 -04:00
parent f2cebb42a6
commit 160f47495d
5 changed files with 652 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ class Plugin extends Base
$this->template->hook->attach('template:project:dropdown', 'Calendar:project/dropdown');
$this->template->hook->attach('template:project-header:view-switcher', 'Calendar:project_header/views');
$this->template->hook->attach('template:config:sidebar', 'Calendar:config/sidebar');
$this->hook->on('template:layout:css', array('template' => 'plugins/Calendar/Assets/fullcalendar.min.css'));
$this->hook->on('template:layout:js', array('template' => 'plugins/Calendar/Assets/moment.min.js'));
$this->hook->on('template:layout:js', array('template' => 'plugins/Calendar/Assets/fullcalendar.min.js'));
$this->hook->on('template:layout:js', array('template' => 'plugins/Calendar/Assets/calendar.js'));
}
public function onStartup()