From aedac7fcbc70b51530e1aaf8c4470a01e9546bcc Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 12 May 2015 14:09:01 -0400 Subject: [PATCH] better progress bar sequence --- lib/persona.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/persona.js b/lib/persona.js index d91311e..1bb00c8 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -1,6 +1,6 @@ "use strict"; -/*globals config, utils*/ +/*globals config, utils, NProgress*/ $(document).ready(function() { setupSlideMenu(); @@ -46,7 +46,11 @@ $(document).ready(function() { }); $(window).on('action:ajaxify.loadingData', function() { - NProgress.set(0.6); + NProgress.set(0.4); + }); + + $(window).on('action:ajaxify.dataLoaded', function() { + NProgress.set(0.8); }) $(window).on('action:ajaxify.end', function() {