Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Use relative paths in httpAdmin requests #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tradfri-out.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h3>Details</h3>
var c = RED.nodes.node($('#node-input-hub option:selected').val());

// Try to connect to hub to get device and group data
$.get('/tradfri/controls',{sid:c.sid, coap:c.coap, hubip:c.hubip, identity:c.identity, preshared_key:c.preshared_key}, function(data){
$.get('tradfri/controls',{sid:c.sid, coap:c.coap, hubip:c.hubip, identity:c.identity, preshared_key:c.preshared_key}, function(data){

// Stop spinner
$('#tradfri-spinner').removeClass('fa-pulse');
Expand Down Expand Up @@ -277,7 +277,7 @@ <h3>Details</h3>
};

if (vtst(tsid) && vtst(tcoap) && vtst(thubip)){
$.get('/tradfri/register',{sid: tsid, coap:tcoap, hubip:thubip}, function(data){
$.get('tradfri/register',{sid: tsid, coap:tcoap, hubip:thubip}, function(data){
if (data.status == 'ok'){
$('#node-config-input-preshared_key').val(data.preshared_key);
$('#node-config-input-identity').val(data.identity);
Expand All @@ -293,7 +293,7 @@ <h3>Details</h3>

});

$.get('/tradfri/libs', function(data){
$.get('tradfri/libs', function(data){
data.forEach(function(item){
var t = $("<a href='#'>"+item.file+"</a>");
t.on('click', function(){
Expand Down