Replace calendar component by vanilla javascript

This commit is contained in:
Frederic Guillot
2016-11-21 22:08:35 -05:00
parent 5188ed8cfe
commit a3bb27109d
5 changed files with 36 additions and 16 deletions

View File

@@ -16,6 +16,23 @@ use Kanboard\Formatter\TaskCalendarFormatter;
*/
class CalendarHelper extends Base
{
/**
* Render calendar component
*
* @param string $checkUrl
* @param string $saveUrl
* @return string
*/
public function render($checkUrl, $saveUrl)
{
$params = array(
'checkUrl' => $checkUrl,
'saveUrl' => $saveUrl,
);
return '<div class="js-calendar" data-params=\''.json_encode($params, JSON_HEX_APOS).'\'></div>';
}
/**
* Get formatted calendar task due events
*