From edc22fcacbd5dd97ee0ada44d2691988877e4395 Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sat, 24 Sep 2016 00:40:14 +0300 Subject: [PATCH] clickable notifications from email, slack, pushover, telegram, etc now divert the user to the proper chart --- web/index.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/web/index.html b/web/index.html index 6ae2e51f..288e42cc 100644 --- a/web/index.html +++ b/web/index.html @@ -2628,12 +2628,6 @@ function renderChartsAndMenu(data) { // index the chart in the menu/submenu menus[charts[c].menu].submenus[charts[c].submenu].charts.push(charts[c]); - - // console.log(urlOptions.chart + ' === ' + c); - if(urlOptions.chart === c) { - urlOptions.hash = '#' + NETDATA.name2id(charts[c].menu + '_' + charts[c].submenu) - // console.log('hash = ' + urlOptions.hash); - } } // propagate the descriptive subname given to QoS @@ -3262,6 +3256,13 @@ function finalizePage() { // check if we have to jump to a specific section scrollToId(urlOptions.hash.replace('#','')); + if(urlOptions.chart !== null) { + NETDATA.alarms.scrollToChart(urlOptions.chart); + //urlOptions.hash = '#' + NETDATA.name2id('menu_' + charts[c].menu + '_submenu_' + charts[c].submenu); + //urlOptions.hash = '#chart_' + NETDATA.name2id(urlOptions.chart); + //console.log('hash = ' + urlOptions.hash); + } + /* activate bootstrap sidebar (affix) */ $('#sidebar').affix({ offset: { -- 2.39.2