clickable notifications from email, slack, pushover, telegram, etc now divert the user to the proper chart
Costa Tsaousis (ktsaou) committed
Sep 24, 2016 at 00:40 UTC
edc22fcacbd5dd97ee0ada44d2691988877e4395
1 file changed
+7
-6
web/index.html
+7
-6
@@ -2628,12 +2628,6 @@ function renderChartsAndMenu(data) {
2628
2629
// index the chart in the menu/submenu
2630
menus[charts[c].menu].submenus[charts[c].submenu].charts.push(charts[c]);
2631
-
2632
- // console.log(urlOptions.chart + ' === ' + c);
2633
- if(urlOptions.chart === c) {
2634
- urlOptions.hash = '#' + NETDATA.name2id(charts[c].menu + '_' + charts[c].submenu)
2635
- // console.log('hash = ' + urlOptions.hash);
2636
- }
2631
}
2632
2633
// propagate the descriptive subname given to QoS
@@ -3262,6 +3256,13 @@ function finalizePage() {
3256
// check if we have to jump to a specific section
3257
scrollToId(urlOptions.hash.replace('#',''));
3258
3259
+ if(urlOptions.chart !== null) {
3260
+ NETDATA.alarms.scrollToChart(urlOptions.chart);
3261
+ //urlOptions.hash = '#' + NETDATA.name2id('menu_' + charts[c].menu + '_submenu_' + charts[c].submenu);
3262
+ //urlOptions.hash = '#chart_' + NETDATA.name2id(urlOptions.chart);
3263
+ //console.log('hash = ' + urlOptions.hash);
3264
+ }
3265
+
3266
/* activate bootstrap sidebar (affix) */
3267
$('#sidebar').affix({
3268
offset: {