Mercurial > bottledash
changeset 23:f63737665ac5
fixed an URL rediretion problem
author | sean |
---|---|
date | Thu, 13 Aug 2015 13:14:00 +0200 |
parents | 3dfa9ed1dd8b |
children | 7d431b779512 |
files | views/bottledash_view.tpl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/views/bottledash_view.tpl Thu Aug 13 13:01:12 2015 +0200 +++ b/views/bottledash_view.tpl Thu Aug 13 13:14:00 2015 +0200 @@ -131,7 +131,7 @@ function check_server_state(ip){ var request = new XMLHttpRequest(); var params = "service=" + ip; - request.open('POST', "http://localhost:8080/ask-systemstate", false); + request.open('POST', window.location.href + "ask-systemstate", false); request.send(params); // console.log(request.responseText); return request.responseText