summaryrefslogtreecommitdiff
path: root/www/js/components.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/components.js')
-rw-r--r--www/js/components.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/components.js b/www/js/components.js
index 1636df5..be3f2bf 100644
--- a/www/js/components.js
+++ b/www/js/components.js
@@ -53,8 +53,8 @@ var ClockView = React.createClass({
// weekspan.addClass('label-default').text('Fehler');
// }
-function drawClock(date, time, week) {
- ReactDOM.render(React.createElement(ClockView, { date: date, time: time, week: week }), document.getElementById('clock'));
+function drawClock(date, time, week, element) {
+ ReactDOM.render(React.createElement(ClockView, { date: date, time: time, week: week }), element);
}
},{}]},{},[1]);