Skip to content
Snippets Groups Projects
Commit 9409f623 authored by jkerdreu's avatar jkerdreu
Browse files

Fix device too

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2145 b32b6428-25c9-4566-ad07-03861ab6144f
parent bab4132f
Branches
No related tags found
No related merge requests found
......@@ -47,7 +47,9 @@ function getUrlVars () {
function update() {
var addr=getUrlVars()['addr'];
var url=window.location.origin+"/devices/"+addr;
var getUrl = window.location;
var baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
var url=baseUrl+"/devices/"+addr;
$.getJSON(url, function(result){
$("#address").text(result["address"]);
var schema= "http://recherche.telecom-bretagne.eu/xaal/documentation/" + result["devtype"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment