better progress bar sequence

main
psychobunny 10 years ago
parent 476fd422fe
commit aedac7fcbc

@ -1,6 +1,6 @@
"use strict"; "use strict";
/*globals config, utils*/ /*globals config, utils, NProgress*/
$(document).ready(function() { $(document).ready(function() {
setupSlideMenu(); setupSlideMenu();
@ -46,7 +46,11 @@ $(document).ready(function() {
}); });
$(window).on('action:ajaxify.loadingData', 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() { $(window).on('action:ajaxify.end', function() {

Loading…
Cancel
Save