Subversion Repository Public Repository

Nextrek

Diff Revisions 1048 vs 1049 for /Web/Smartcharging_search/js/core.js

Diff revisions: vs.
  @@ -36,10 +36,24 @@
36 36 errorCallback && errorCallback(data);
37 37 }
38 38 });
39 - }
39 + },
40 +
41 + getComments: function(id, successCallback, errorCallback, starIndex){
42 + var url_server = path + "get_commenti.php";
43 + var data = {"id": id, "startIndex": starIndex, "length": 10, "order": "desc"};
44 + jQuery.ajax({
45 + url: url_server,
46 + type: 'POST',
47 + data: JSON.stringify(data),
48 + dataType: 'json',
49 + success: function(data){
50 + if(data)
51 + successCallback && successCallback(data);
52 + },
53 + error: function(data){
54 + errorCallback && errorCallback(data);
55 + }
56 + });
57 + }
40 58
41 - };
42 -
43 - //https://developers.google.com/maps/tutorials/customizing/custom-markers#customize_marker_icons_for_different_markers
44 - //https://developers.google.com/maps/documentation/javascript/markers
45 - //https://developers.google.com/maps/documentation/javascript/examples/marker-simple
59 + };