diff options
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 ) { |