Commit 4bf62d15 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

bugfix

parent 928cf1c4
{
"name": "stw-padmws-grapth",
"name": "stw-padmws-graph",
"description": "Used for demo folder.",
"version": "0.0.1",
"private": true,
......
......@@ -13,6 +13,10 @@ var Graph = (function () {
if (options.langdata) {
this.langData = options.langdata;
}
this.url = '/demo';
if (options.url) {
this.url = options.url;
}
if (self.langData) {
self.setup(self.langData.tTitle, targetid);
}
......@@ -180,7 +184,7 @@ var Graph = (function () {
};
}
reqwest({
url: "/demo/graph/" + self.id,
url: self.url + "/graph/" + self.id,
method: 'get',
type: 'json',
success: function (jsondata) {
......
This diff is collapsed.
......@@ -8,6 +8,7 @@ class Graph {
private id: string;
private chart: any;
private url : string;
private chartCanvas: HTMLCanvasElement;
private lang: string;
private langData: any;
......@@ -22,8 +23,10 @@ class Graph {
if (options.langdata) {
this.langData = options.langdata;
}
this.url = '/demo'
if (options.url) {
this.url = options.url;
}
if (self.langData) {
self.setup(self.langData.tTitle, targetid);
} else {
......@@ -202,7 +205,7 @@ class Graph {
}
reqwest({
url: "/demo/graph/" + self.id,
url: self.url+"/graph/" + self.id,
method: 'get',
type: 'json',
success: function (jsondata) {
......
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