Commit 776b6532 authored by Roque's avatar Roque

erp5_web_project_ui: fix test query url

parent 8a5a8e5f
/*jslint nomen: true, indent: 2 */
/*global window, rJS, RSVP, document, SimpleQuery, ComplexQuery, Query, parseInt, jIO*/
(function (window, rJS, RSVP, document, SimpleQuery, ComplexQuery, Query, parseInt, jIO) {
/*global window, rJS, RSVP, document, SimpleQuery, ComplexQuery, Query, parseInt, jIO, URL */
(function (window, rJS, RSVP, document, SimpleQuery, ComplexQuery, Query, parseInt, jIO, URL) {
"use strict";
var STATUS_OK = "green",
......@@ -426,8 +426,7 @@
.push(function () {
return jIO.util.ajax({
type: "GET",
//TODO fix "erp5" part of the url
url: document.location.origin + "/erp5/ERP5Site_getProjectTestStatusData"
url: new URL('./ERP5Site_getProjectTestStatusData', window.location.href)
});
})
.push(function (result) {
......@@ -526,4 +525,4 @@
return true;
});
}(window, rJS, RSVP, document, SimpleQuery, ComplexQuery, Query, parseInt, jIO));
\ No newline at end of file
}(window, rJS, RSVP, document, SimpleQuery, ComplexQuery, Query, parseInt, jIO, URL));
\ No newline at end of file
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>982.21116.37524.56610</string> </value>
<value> <string>982.21206.6215.34969</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1583416131.77</float>
<float>1583421509.63</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment