From d5608829b28e8e833435fe4ec93565a93a89d764 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 30 Jan 2019 23:51:57 +0100 Subject: New code --- static/synhestesis.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'static') diff --git a/static/synhestesis.js b/static/synhestesis.js index 3696c5a..209e896 100644 --- a/static/synhestesis.js +++ b/static/synhestesis.js @@ -29,12 +29,13 @@ function selectChange(evt) { resetButt.value = "Reset"; var xmlHttp = new XMLHttpRequest(); + xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { loadFile(xmlHttp.responseText); } } - xmlHttp.open("GET", "http://ache.one/shared/synhestesis/" +select.options[select.selectedIndex].value, true); + xmlHttp.open("GET", "/default/" + select.options[select.selectedIndex].value, true); xmlHttp.send(null); } function loadFile( str ) { -- cgit v1.2.3