summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-11-21 22:08:35 -0500
committerFrederic Guillot <fred@kanboard.net>2016-11-21 22:08:35 -0500
commita3bb27109dc01fa5df2c771b84620f1e8f56b849 (patch)
tree57b593c0c3dbad65c4f9c345fc58975c267ad0c8 /app/Helper
parent5188ed8cfe347ee2d4521aca242d250ebcbae6bd (diff)
Replace calendar component by vanilla javascript
Diffstat (limited to 'app/Helper')
-rw-r--r--app/Helper/CalendarHelper.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Helper/CalendarHelper.php b/app/Helper/CalendarHelper.php
index b35c40f7..4f78b673 100644
--- a/app/Helper/CalendarHelper.php
+++ b/app/Helper/CalendarHelper.php
@@ -17,6 +17,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
*
* @access public