summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/jquery.spin.js3
-rw-r--r--templates/apps/stats/user.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/static/js/jquery.spin.js b/static/js/jquery.spin.js
index 0a7c2b5..ab919db 100644
--- a/static/js/jquery.spin.js
+++ b/static/js/jquery.spin.js
@@ -16,7 +16,8 @@ $("#el").spin(false); // Kills the spinner.
"custom": { lines: 7, length: 2, width: 2, radius: 2},
"tiny": { lines: 8, length: 2, width: 2, radius: 3 },
"small": { lines: 8, length: 4, width: 3, radius: 5 },
- "large": { lines: 10, length: 8, width: 4, radius: 8 }
+ "large": { lines: 10, length: 8, width: 4, radius: 8 },
+ "flotload": { lines: 13, length: 7, width: 7, radius: 33 }
};
if (Spinner) {
return this.each(function() {
diff --git a/templates/apps/stats/user.html b/templates/apps/stats/user.html
index 9dcc1c4..79ca566 100644
--- a/templates/apps/stats/user.html
+++ b/templates/apps/stats/user.html
@@ -4,7 +4,7 @@
$.ajax({
url: '/api/stats/user/{{username}}',
method: 'GET',
- ajaxStart: function() { $('#graph').spin("large"); },
+ beforeSend: function() { $('#graph').spin("large"); },
success: function (resp) {
var graph = $('#graph');
graph.spin(false);