X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=www%2Fpsensor.js;h=6f4ef7e4e4424deb24873f54fdef4fbd02a0cf57;hp=3e902853faa99053eb469f835de90d936cdcdd7c;hb=1438bc505641cd98fe3af323fb2329c3284e157f;hpb=9a42a1b4185779c06492e7399fa4205f541caf2d
diff --git a/www/psensor.js b/www/psensor.js
index 3e90285..6f4ef7e 100644
--- a/www/psensor.js
+++ b/www/psensor.js
@@ -169,17 +169,8 @@ function update_menu() {
str = "";
$.getJSON("/api/1.1/sensors", function(data) {
- str += "
CPU";
- url = "details.html?id="+escape("/api/1.1/cpu/usage");
- link = "usage";
- str += "- "+link+"
";
- str += "
";
+ str += "Sensors\n";
- str += "- Network
";
-
- str += "- Memory
";
-
- str += "- Sensors\n
";
$.each(data, function(i, item) {
name = item["name"];
url = "details.html?id="+escape("/api/1.1/sensors/"+item["id"]);
@@ -187,6 +178,13 @@ function update_menu() {
str += "- "+link+"
";
});
str += "
";
+
+ str += "CPU";
+ url = "details.html?id="+escape("/api/1.1/cpu/usage");
+ link = "usage";
+ str += "- "+link+"
";
+
+ str += "
";
$("#menu-list").append(str);