Revision: 12761 http://trac.calendarserver.org//changeset/12761 Author: wsanchez@apple.com Date: 2014-02-26 18:34:52 -0800 (Wed, 26 Feb 2014) Log Message: ----------- minor Modified Paths: -------------- CalendarServer/trunk/calendarserver/webadmin/work.xhtml Modified: CalendarServer/trunk/calendarserver/webadmin/work.xhtml =================================================================== --- CalendarServer/trunk/calendarserver/webadmin/work.xhtml 2014-02-27 02:34:09 UTC (rev 12760) +++ CalendarServer/trunk/calendarserver/webadmin/work.xhtml 2014-02-27 02:34:52 UTC (rev 12761) @@ -70,16 +70,24 @@ bars.exit().remove() } - function update() { + function updateChart() { drawChart([4, 8, 15, 16, 23, 42]); } function initChart() { - drawChart([0, 0, 0, 0, 0, 0]); + drawChart([1, 2, 3, 4, 8, 15, 16, 23, 42]); } - window.onload = initChart; + function initEventSource() { + var eventSource = new EventSource("./events"); + } + + + window.onload = function() { + initChart(); + }; + </script> </head> @@ -90,7 +98,7 @@ <svg id="work_queues_chart" /> <br /> - <button onclick="update()">Update</button> + <button onclick="updateChart()">Update</button> </body>
participants (1)
-
source_changes@macosforge.org