Commit d7df8b39 authored by Jérome Perrin's avatar Jérome Perrin

use relative links to work behind a proxy

parent 6f913d3d
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<a id="zoom_in">Zoom +</a> <a id="zoom_in">Zoom +</a>
<a id="zoom_out">Zoom -</a> <a id="zoom_out">Zoom -</a>
<a id="export">Export</a> <a id="export">Export</a>
<form id="export_form" style="display:none" method="post" action="/postJSONData"> <form id="export_form" style="display:none" method="post" action="../postJSONData">
<textarea id="export_json" name="data"></textarea> <textarea id="export_json" name="data"></textarea>
</form> </form>
<a id="import">Import</a> <a id="import">Import</a>
......
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
that.setGeneralProperties(properties); that.setGeneralProperties(properties);
$.ajax( $.ajax(
'/runSimulation', { '../runSimulation', {
data: JSON.stringify({ data: JSON.stringify({
json: that.getData() json: that.getData()
}), }),
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
var configuration = { }; var configuration = { };
$.ajax( $.ajax(
'/getConfigurationDict', { '../getConfigurationDict', {
success: function (data) { success: function (data) {
configuration = $.extend(configuration, data); configuration = $.extend(configuration, data);
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
$("#import_file").change(function () { $("#import_file").change(function () {
var form = $(this).parent('form')[0]; var form = $(this).parent('form')[0];
var form_data = new FormData(form); var form_data = new FormData(form);
$.ajax('/postJSONFile', { $.ajax('../postJSONFile', {
type: 'POST', type: 'POST',
contentType: false, contentType: false,
processData: false, processData: false,
......
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