From 3d2fc23bd73d12d03e3e172f5ddc52dbdbe8c86b Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Sun, 21 Oct 2012 12:02:33 +0200 Subject: spinner --- templates/apps/stats/user.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'templates') 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 %}

Meeting statistics for {{username}}

-- cgit v1.1