From 55c61b7eb1d71b5a69f8ad1d96f446474f3896f2 Mon Sep 17 00:00:00 2001 From: Nickson Yap Date: Tue, 20 Jun 2017 02:08:53 +0800 Subject: [PATCH] wrap progressbar with document ready --- src/js/custom.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/js/custom.js b/src/js/custom.js index 95a76034..a3f3b91c 100644 --- a/src/js/custom.js +++ b/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