summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-21 12:14:22 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-21 12:14:22 +0200
commita5d6b430521b4621203e3b14c376068ca3e03a6c (patch)
tree6f203fb938e3a504496068e22551b88ddeefbcec /templates
parent51d94fcb3d15250e5acecec8a425196adf248bcd (diff)
spinner
Diffstat (limited to 'templates')
-rw-r--r--templates/apps/stats/user.html34
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>