We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2afe473 commit edb025eCopy full SHA for edb025e
www/pgm2/fronthemEditor.js
@@ -39,11 +39,11 @@
39
40
function sveReadGADList(device) {
41
console.log('read list');
42
+ var token = $("body").attr('fwcsrf') ? '&fwcsrf=' + $("body").attr('fwcsrf') : '';
43
var url = $(location).attr('pathname');
44
var transfer = {};
45
transfer.cmd = 'gadList';
- var dataString = 'dev.' + device + '=' + device + '&cmd.' + device + '=get&arg.' + device + '=webif-data&val.' + device + '=' + JSON.stringify(transfer) + '&XHR=1';
46
- dataString = addcsrf(dataString);
+ var dataString = 'dev.' + device + '=' + device + '&cmd.' + device + '=get&arg.' + device + '=webif-data&val.' + device + '=' + JSON.stringify(transfer) + '&XHR=1' + token;
47
$.ajax({
48
type: "POST",
49
url: url,
0 commit comments