]> arthur.barton.de Git - netdata.git/commitdiff
netdata dashboard.js moved inside an anonymous function
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 27 Dec 2016 19:30:56 +0000 (21:30 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 27 Dec 2016 19:30:56 +0000 (21:30 +0200)
web/dashboard.js
web/demosites.html
web/index.html

index c4f3a93e47f16a82872969ba9f0ca5081bb22b78..72960f63d2354ab19355a20cbd0bfde08cd969e7 100644 (file)
 // netdata server already.
 // var netdataServer = "http://yourhost:19999"; // set your NetData server
 
-//(function(window, document, undefined) {
+// global namespace
+var NETDATA = window.NETDATA || {};
 
+(function(window, document, undefined) {
     // ------------------------------------------------------------------------
     // compatibility fixes
 
@@ -53,9 +55,6 @@
         };
     }
 
-    // global namespace
-    var NETDATA = window.NETDATA || {};
-
     NETDATA.name2id = function(s) {
         return s
             .replace(/ /g, '_')
             }
         });
     });
-
-    // window.NETDATA = NETDATA;
-// })(window, document);
+})(window, document);
index 2cb8bfcbd265fb0b582cdc44c2ca41892e3b61cd..99ecf20c384d5c327c553d33dec76910cd4347ab 100644 (file)
@@ -505,7 +505,7 @@ p {
     and that you have chown it to be owned by netdata:netdata
 -->
 <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
-<script type="text/javascript" src="dashboard.js?v20161219-1"></script>
+<script type="text/javascript" src="dashboard.js?v20161227-1"></script>
 
 <script>
     // --- OPTIONS FOR THE CHARTS --
index a826a60c6738de0353b42a3a7dcc32bb71c092b0..e60e689123dafb0e9405c3731283cde14859f39a 100644 (file)
     </div>
 </body>
 </html>
-<script type="text/javascript" src="dashboard.js?v20161226-1"></script>
+<script type="text/javascript" src="dashboard.js?v20161227-1"></script>