Subversion Repository Public Repository

Nextrek

Diff Revisions 592 vs 594 for /Android/SmartCharging/endPoints/nightly/control_panel/js/locals.js

Diff revisions: vs.
  @@ -21,10 +21,18 @@
21 21
22 22 for (var i = 0; i<data.comments.length; i++) {
23 23 //per ora test
24 - $("#comment-list").append(data.comments[i]);
24 + //$("#comment-list").append(JSON.stringify(data.comments[i]));
25 +
26 + var htmlToPut = "<div id='comment-"+data.comments[i].id+"'>";
27 + htmlToPut += "<b>"+data.comments[i].username+"</b> "+data.comments[i].data;
28 + htmlToPut += "<div id='comment-content'"+data.comments[i].id+"'>"+data.comments[i].descrizione+"</div>"
29 + htmlToPut += "</div>"
30 +
31 + $("#comment-list").append(htmlToPut);
32 +
25 33 }
26 34
27 - params = JSON.parse(this.data.params);
35 + params = JSON.parse(this.data);
28 36
29 37 if (data.count < params.startIndex+10) {
30 38 $("#more-comments-button").hide();