From 352fba7c8a36f8b2fe6014f073b2725c60a20205 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Thu, 21 Apr 2016 01:29:29 +0300 Subject: [PATCH] automatically disable online help if bootstrap is missing #286 --- web/dashboard.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/dashboard.js b/web/dashboard.js index b6c62ae3..a2089d41 100644 --- a/web/dashboard.js +++ b/web/dashboard.js @@ -5310,6 +5310,7 @@ { url: NETDATA.serverDefault + 'lib/bootstrap.min.js', isAlreadyLoaded: function() { + // check if bootstrap is loaded if(typeof $().emulateTransitionEnd == 'function') return true; else { @@ -5406,6 +5407,11 @@ NETDATA._loadjQuery(function() { NETDATA.loadRequiredJs(0, function() { + if(typeof $().emulateTransitionEnd == 'function') { + // bootstrap is not available + NETDATA.options.current.show_help = false; + } + if(typeof netdataDontStart === 'undefined' || !netdataDontStart) { if(NETDATA.options.debug.main_loop === true) console.log('starting chart refresh thread'); -- 2.39.2