use the json data url as id
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 12 Sep 2011 13:05:40 +0000 (13:05 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 12 Sep 2011 13:05:40 +0000 (13:05 +0000)
NEWS
www/details.html
www/monitor.html

diff --git a/NEWS b/NEWS
index 4e3473b..b634772 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+* v0.6.2.11
+** psensor-server/web interface: use jqplot default css.
+
 * v0.6.2.10
 ** psensor-server: added network, cpu load and memory information in
    JSON web interface.
index 1eff2b9..aa7603d 100644 (file)
@@ -18,7 +18,7 @@
           var url_id = params["id"];
 
 
-          $.getJSON("/api/1.0/sensors/"+url_id, function(data) {
+          $.getJSON(url_id, function(data) {
               var measures = data["measures"];
               var data_chart = [];
 
index ce33104..c8a3017 100644 (file)
@@ -23,7 +23,7 @@
 
                   $("#sensors").append("<tr>"
                                       +"<td>"
-                                      +"<a href='details.html?id="+escape(item["id"])
+                                      +"<a href='details.html?id="+escape("/api/1.0/sensors/"+item["id"])
                                        +"'>"+sname+"</a></td>"
                                       +"<td>"+svalue+unit+"</td><td>"+smin+unit+"</td><td>"+smax+unit+"</td><td>"+stype_str+"</td></tr>");                 
               });