mirror of https://github.com/statping/statping
JS chart load issue fixed
parent
3b014eb891
commit
46fd58888f
|
@ -111,13 +111,15 @@ $('select#service_type').on('change', function() {
|
|||
}
|
||||
});
|
||||
|
||||
function AjaxChart(chart, service, start=0, end=9999999999, group="hour") {
|
||||
function AjaxChart(chart, service, start=0, end=9999999999, group="hour", retry=true) {
|
||||
$.ajax({
|
||||
url: "/api/services/"+service+"/data?start="+start+"&end="+end+"&group="+group,
|
||||
type: 'GET',
|
||||
success: function(data) {
|
||||
if (data.data.length < 12) {
|
||||
AjaxChart(chart, service, 0, 9999999999, "second")
|
||||
if (retry) {
|
||||
AjaxChart(chart, service, 0, 9999999999, "second", false);
|
||||
}
|
||||
return;
|
||||
} else if (data.data.length === 0) {
|
||||
return;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// This file was generated by robots at
|
||||
// 2019-01-16 20:48:58.36586 -0800 PST m=+0.534954367
|
||||
// 2019-01-17 01:23:49.15263 -0800 PST m=+0.644968431
|
||||
//
|
||||
// This contains the most recently Markdown source for the Statping Wiki.
|
||||
package source
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.80.37
|
||||
0.80.38
|
||||
|
|
Loading…
Reference in New Issue