netdata dashboard.js moved inside an anonymous function
Costa Tsaousis (ktsaou) committed
Dec 27, 2016 at 21:30 UTC
5cfac5253017e04b4bb45cca8d7377b39f9cd791
3 files changed
+6
-9
web/dashboard.js
+4
-7
@@ -29,8 +29,10 @@
29
// netdata server already.
30
// var netdataServer = "http://yourhost:19999"; // set your NetData server
31
32
-//(function(window, document, undefined) {
32
+// global namespace
33
+var NETDATA = window.NETDATA || {};
34
35
+(function(window, document, undefined) {
36
// ------------------------------------------------------------------------
37
// compatibility fixes
38
@@ -53,9 +55,6 @@
55
};
56
}
57
56
- // global namespace
57
- var NETDATA = window.NETDATA || {};
58
-
58
NETDATA.name2id = function(s) {
59
return s
60
.replace(/ /g, '_')
@@ -6577,6 +6576,4 @@
6576
}
6577
});
6578
});
6580
-
6581
- // window.NETDATA = NETDATA;
6582
-// })(window, document);
6579
+})(window, document);
web/demosites.html
+1
-1
@@ -505,7 +505,7 @@ p {
505
and that you have chown it to be owned by netdata:netdata
506
-->
507
<!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
508
-<script type="text/javascript" src="dashboard.js?v20161219-1"></script>
508
+<script type="text/javascript" src="dashboard.js?v20161227-1"></script>
509
510
<script>
511
// --- OPTIONS FOR THE CHARTS --
web/index.html
+1
-1
@@ -3186,4 +3186,4 @@
3186
</div>
3187
</body>
3188
</html>
3189
-<script type="text/javascript" src="dashboard.js?v20161226-1"></script>
3189
+<script type="text/javascript" src="dashboard.js?v20161227-1"></script>