Browse Source

Merge pull request #510 from NicksonYap/master

wrap progressbar with document ready
pull/529/head
AndreiCN 8 years ago committed by GitHub
parent
commit
5aa58a060c
  1. 10
      src/js/custom.js

10
src/js/custom.js

@ -136,9 +136,11 @@ $(document).ready(function() {
// /Tooltip
// Progressbar
if ($(".progress .progress-bar")[0]) {
$('.progress .progress-bar').progressbar();
}
$(document).ready(function() {
if ($(".progress .progress-bar")[0]) {
$('.progress .progress-bar').progressbar();
}
});
// /Progressbar
// Switchery
@ -240,7 +242,7 @@ if (typeof NProgress != 'undefined') {
NProgress.start();
});
$(window).on('load',function() {
$(window).on('load', function() {
NProgress.done();
});
}

Loading…
Cancel
Save