From 5242d2f241a170c214bcddb575c4c628f615b622 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 28 Sep 2016 21:59:35 +0200 Subject: try with require diff --git a/www/js/calendar.js b/www/js/calendar.js index fe48ef2..3a87f20 100644 --- a/www/js/calendar.js +++ b/www/js/calendar.js @@ -22,6 +22,7 @@ 'use strict'; var current_week_offset = 0; +var components = require('components'); function getLastMonday() { var d = clock.now() @@ -98,8 +99,7 @@ function calendar_init() { $('#calendar').on('wheel', calendar_scroll); current_week_offset = -4; clock.addCallback(function(date, time, week) { -// drawClock(date, time, week, $('#clock')); - ReactDOM.render(React.createElement(ClockView, { date: date, time: time, week: week }), $('#clock')); + components.drawClock(date, time, week, $('#clock')); calendar_redraw(current_week_offset); }); } -- cgit v0.10.2