Skip to content
Snippets Groups Projects
Commit 4d33bcc6 authored by jkerdreu's avatar jkerdreu
Browse files

Let's go back to this fucking state



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2154 b32b6428-25c9-4566-ad07-03861ab6144f
parent 8dbb1050
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,8 @@ function getUrlVars () {
function update() {
var addr=getUrlVars()['addr'];
var getUrl = window.location;
var baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
//var baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
var baseUrl = getUrl.protocol + "//" + getUrl.host;
var url=baseUrl+"/devices/"+addr;
$.getJSON(url, function(result){
$("#address").text(result["address"]);
......
......@@ -22,7 +22,8 @@
<script type="text/javascript">
var getUrl = window.location;
var baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
//var baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[0];
var baseUrl = getUrl.protocol + "//" + getUrl.host;
var url=baseUrl+"/devices";
$("#resturl").html("<a href="+url+">"+url+"</a>");
$("#hostname").html(window.location.hostname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment