diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-28 19:59:35 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-09-28 19:59:35 (GMT) |
commit | 5242d2f241a170c214bcddb575c4c628f615b622 (patch) | |
tree | 04846ec3ef4d31e027ffc13d7e547738f4cb12b9 | |
parent | 370551a8979e909e9157e6da4c48c36c1fdc8220 (diff) |
try with requirefailed-react-experiment
-rw-r--r-- | www/js/calendar.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); }); } |