fix DMX sniff on T1
This commit is contained in:
@@ -464,8 +464,6 @@
|
||||
|
||||
// CREATES MODAL FOR LOG TOOLS
|
||||
function cfgm() {
|
||||
console.log(is_sniffing);
|
||||
|
||||
$('#m-t').html('Logs tools');
|
||||
$('#m-f').empty();
|
||||
$('.sb').unbind();
|
||||
|
||||
46
t1/logs.html
46
t1/logs.html
@@ -323,22 +323,38 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// CREATES MODAL FOR LOG TOOLS
|
||||
function cfgm() {
|
||||
$('#m-t').html('Logs tools');
|
||||
$('#m-f').empty();
|
||||
$('.sb').unbind();
|
||||
var tl = c_btn('Download log file', 0, ' dlog');
|
||||
tl += c_btn('Start DMX sniff', 0, ' ddmx');
|
||||
$('#m-b').html(tl);
|
||||
$('#cfg-modal').modal();
|
||||
$('.dlog').bind('click', function () {
|
||||
close_modal()
|
||||
});
|
||||
$('.ddmx').bind('click', function () {
|
||||
close_modal()
|
||||
})
|
||||
|
||||
var is_sniffing = false;
|
||||
|
||||
// CREATES MODAL FOR LOG TOOLS
|
||||
function cfgm() {
|
||||
$('#m-t').html('Logs tools');
|
||||
$('#m-f').empty();
|
||||
$('.sb').unbind();
|
||||
var tl = c_btn('Download log file', 0, ' dlog');
|
||||
if (!is_sniffing) {
|
||||
tl += c_btn('Start DMX sniff', 0, ' ddmx');
|
||||
} else {
|
||||
tl += c_btn('Stop DMX sniff', 0, ' ddmx');
|
||||
}
|
||||
$('#m-b').html(tl);
|
||||
$('#cfg-modal').modal();
|
||||
$('.dlog').bind('click', function () {
|
||||
// download logs
|
||||
close_modal()
|
||||
});
|
||||
$('.ddmx').bind('click', function () {
|
||||
// start sniff
|
||||
if (is_sniffing) {
|
||||
$('.ddmx').html('Start DMX sniff');
|
||||
is_sniffing = false;
|
||||
} else {
|
||||
$('.ddmx').html('Stop DMX sniff');
|
||||
is_sniffing = true;
|
||||
}
|
||||
close_modal()
|
||||
})
|
||||
}
|
||||
|
||||
function lfix(l) {
|
||||
return l.charAt(0).toUpperCase() + l.slice(1).toLowerCase().replace('ems', 'EMS')
|
||||
|
||||
Reference in New Issue
Block a user