summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/apps/stats/user.html7
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>