@cryptotaxi247 / netdata-1 / commits / 352fba7c8

automatically disable online help if bootstrap is missing #286

Costa Tsaousis (ktsaou) committed Apr 21, 2016 at 01:29 UTC 352fba7c8a36f8b2fe6014f073b2725c60a20205
1 file changed +6
web/dashboard.js
+6
@@ -5310,6 +5310,7 @@
5310 {
5311 url: NETDATA.serverDefault + 'lib/bootstrap.min.js',
5312 isAlreadyLoaded: function() {
5313 + // check if bootstrap is loaded
5314 if(typeof $().emulateTransitionEnd == 'function')
5315 return true;
5316 else {
@@ -5406,6 +5407,11 @@
5407
5408 NETDATA._loadjQuery(function() {
5409 NETDATA.loadRequiredJs(0, function() {
5410 + if(typeof $().emulateTransitionEnd == 'function') {
5411 + // bootstrap is not available
5412 + NETDATA.options.current.show_help = false;
5413 + }
5414 +
5415 if(typeof netdataDontStart === 'undefined' || !netdataDontStart) {
5416 if(NETDATA.options.debug.main_loop === true)
5417 console.log('starting chart refresh thread');