diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-05-19 12:33:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-05-19 12:33:27 +0000 |
commit | 841395dd16f470e3c051a0a4fff5b91efc983c30 (patch) | |
tree | 4115f6eedcddda75067130b80acaff9e51612f49 /web/gui/dashboard/dash-example.html | |
parent | Adding upstream version 1.30.1. (diff) | |
download | netdata-upstream/1.31.0.tar.xz netdata-upstream/1.31.0.zip |
Adding upstream version 1.31.0.upstream/1.31.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | web/gui/dashboard/dash-example.html (renamed from web/gui/dash-example.html) | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/web/gui/dash-example.html b/web/gui/dashboard/dash-example.html index b1ff1af82..b9bc80376 100644 --- a/web/gui/dash-example.html +++ b/web/gui/dashboard/dash-example.html @@ -446,7 +446,7 @@ class PickNSort { try { return JSON.parse(localStorage.getItem('netdata_ordered_hosts')).enabled } catch (e) { - return this.netdata_info.mirrored_hosts.sort(); + return this.netdata_info.mirrored_hosts; } } @@ -550,9 +550,9 @@ class PickNSort { for (var i=0, len=hosts.length; i<len; i++) { var hostname = hosts[i]; - $('#alarms .alarm-host-list').append('<div class="host-alarms ' + hostname + '"><a onclick="return dash.scroll_to_host_stats(' + "'" + hostname + "'" + ')" href="#' + hostname + '"><h2>' + hostname + '</h2></a></div>'); + $('#alarms .alarm-host-list').append('<div class="host-alarms ' + hostname + '"><a target="_blank" href="' + this.get_host_url(hostname, true) + '/"><h2>' + hostname + '</h2></a></div>'); - $template.clone().removeClass('template').attr('id', hostname).appendTo('#dash'); + $template.clone().removeClass('template').appendTo('#dash'); var $newest = $('.netdata-host-stats-container').last(); this.build_stats($newest, hostname); } @@ -625,14 +625,6 @@ class PickNSort { $graph.appendTo($wrapper); } - - scroll_to_host_stats (hostname) { - event.preventDefault(); - $('#dash').scrollLeft(document.getElementById(hostname).offsetLeft - $('#' + hostname).width()); - - // Prevent regular event from happening - return false; - } all_alarms_are_warnings () { var out = true; |