diff options
author | Leif Johansson <leifj@sunet.se> | 2012-10-21 12:02:33 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-10-21 12:02:33 +0200 |
commit | 3d2fc23bd73d12d03e3e172f5ddc52dbdbe8c86b (patch) | |
tree | 5556eedca476db78e434372b7236f577fd2ce3d7 /templates/apps/stats | |
parent | 371053f1f562037b61096595c6c6ae827683f8a6 (diff) |
spinner
Diffstat (limited to 'templates/apps/stats')
-rw-r--r-- | templates/apps/stats/user.html | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/apps/stats/user.html b/templates/apps/stats/user.html index 48ad4ed..4d04e20 100644 --- a/templates/apps/stats/user.html +++ b/templates/apps/stats/user.html @@ -4,6 +4,8 @@ $.ajax({ url: '/api/stats/user/{{username}}', method: 'GET', + start: $(this).spin("large"), + stop: $(this).spin(false), success: function (resp) { var graph = $('#graph'); series = [{label: 'Meeting minutes for {{username}}',data: resp['data']}]; @@ -16,11 +18,6 @@ $.ajax({ $('#rooms').append(resp['rooms']); } }); -$("#graph").ajaxStart(function() { - $(this).spin("large") -}).ajaxStop(function() { - $(this).spin(false) -}); {% endblock %} {% block content %} <h1>Meeting statistics for {{username}}</h1> |