summaryrefslogtreecommitdiffstats
path: root/web/gui/dashboard.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/dashboard.js')
-rw-r--r--web/gui/dashboard.js29
1 files changed, 16 insertions, 13 deletions
diff --git a/web/gui/dashboard.js b/web/gui/dashboard.js
index 1b377d71c3..8a8061a555 100644
--- a/web/gui/dashboard.js
+++ b/web/gui/dashboard.js
@@ -81,6 +81,18 @@ const NETDATA = window.NETDATA || {};
(function(window, document, $, undefined) {
+// *** src/dashboard.js/utils.js
+
+NETDATA.name2id = function (s) {
+ return s
+ .replace(/ /g, '_')
+ .replace(/:/g, '_')
+ .replace(/\(/g, '_')
+ .replace(/\)/g, '_')
+ .replace(/\./g, '_')
+ .replace(/\//g, '_');
+};
+
NETDATA.encodeURIComponent = function (s) {
if (typeof(s) === 'string') {
return encodeURIComponent(s);
@@ -603,8 +615,9 @@ NETDATA.errorReset = function () {
NETDATA.errorLast.message = "You are doing fine!";
NETDATA.errorLast.datetime = 0;
};
-// ------------------------------------------------------------------------
-// compatibility fixes
+// *** src/dashboard.js/compatibility.js
+
+// Compatibility fixes.
// fix IE issue with console
if (!window.console) {
@@ -633,16 +646,6 @@ if (typeof String.prototype.startsWith !== 'function') {
return this.slice(s.length) === s;
};
}
-
-NETDATA.name2id = function (s) {
- return s
- .replace(/ /g, '_')
- .replace(/:/g, '_')
- .replace(/\(/g, '_')
- .replace(/\)/g, '_')
- .replace(/\./g, '_')
- .replace(/\//g, '_');
-};
// ----------------------------------------------------------------------------------------------------------------
// XSS checks
@@ -9300,7 +9303,7 @@ NETDATA.alarms = {
let status = entry.status.toLowerCase();
let title = name + ' = ' + value_string.toString();
let tag = entry.alarm_id;
- let icon = 'images/seo-performance-128.png';
+ let icon = 'images/banner-icon-144x144.png';
let interaction = false;
let data = entry;
let show = true;