diff options
-rw-r--r-- | templates/apps/stats/user.html | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/templates/apps/stats/user.html b/templates/apps/stats/user.html index f3bc96d..6845552 100644 --- a/templates/apps/stats/user.html +++ b/templates/apps/stats/user.html @@ -1,23 +1,23 @@ {% extends "base.html" %} {% load datehumanize %} {% block widgets %} -$.ajax({ - url: '/api/stats/user/{{username}}', - method: 'GET', - start: function() { $('#graph').spin("large") }, - stop: function() { $('#graph').spin(false) }, - success: function (resp) { - var graph = $('#graph'); - series = [{label: 'Meeting minutes for {{username}}',data: resp['data']}]; - $.plot(graph,series,{ - lines: { show: true }, - points: { show: true }, - xaxis: { mode: "time" } - }); - $('#minutes').append(resp['minutes']); - $('#rooms').append(resp['rooms']); - } -}); + $.ajax({ + url: '/api/stats/user/{{username}}', + method: 'GET', + ajaxStart: function() { $('#graph').spin("large"); } + success: function (resp) { + var graph = $('#graph'); + graph.spin(false); + series = [{label: 'Meeting minutes for {{username}}',data: resp['data']}]; + $.plot(graph,series,{ + lines: { show: true }, + points: { show: true }, + xaxis: { mode: "time" } + }); + $('#minutes').append(resp['minutes']); + $('#rooms').append(resp['rooms']); + } + }); {% endblock %} {% block content %} <h1>Meeting statistics for {{username}}</h1> |