diff options
author | ache <ache@ache.one> | 2019-01-30 23:51:57 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2019-01-30 23:51:57 +0100 |
commit | d5608829b28e8e833435fe4ec93565a93a89d764 (patch) | |
tree | 763395f4777390f98d72934a5c127b71f54c7520 /static/synhestesis.js | |
parent | New base (diff) |
New code
Diffstat (limited to 'static/synhestesis.js')
-rw-r--r-- | static/synhestesis.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) { |