remember last grid-local endpoint. default hoverPop off
This commit is contained in:
parent
9be35a21f6
commit
5ada3c6bbd
2 changed files with 11 additions and 3 deletions
|
|
@ -600,7 +600,7 @@
|
||||||
view: null,
|
view: null,
|
||||||
dark: false,
|
dark: false,
|
||||||
expert: true,
|
expert: true,
|
||||||
hoverPop: true,
|
hoverPop: false,
|
||||||
zoomSpeed: 1.0,
|
zoomSpeed: 1.0,
|
||||||
thinRender: false,
|
thinRender: false,
|
||||||
reverseZoom: true,
|
reverseZoom: true,
|
||||||
|
|
|
||||||
|
|
@ -217,20 +217,28 @@
|
||||||
|
|
||||||
grid_local = devs;
|
grid_local = devs;
|
||||||
|
|
||||||
|
let gdev = SDB['grid-local'];
|
||||||
|
let gloc = $('grid-local');
|
||||||
let html = [];
|
let html = [];
|
||||||
for (let uuid in devs) {
|
for (let uuid in devs) {
|
||||||
|
gdev = gdev || uuid;
|
||||||
let dev = devs[uuid];
|
let dev = devs[uuid];
|
||||||
html.push(`<option id="gl-${uuid}" value="${uuid}">${dev.stat.device.name}</option>`);
|
let sel = uuid === gdev ? ' selected' : '';
|
||||||
|
html.push(`<option id="gl-${uuid}" value="${uuid}" ${sel}>${dev.stat.device.name}</option>`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (html.length) {
|
if (html.length) {
|
||||||
$('grid-local').innerHTML = html.join('\n');
|
gloc.innerHTML = html.join('\n');
|
||||||
|
gloc.onchange = (ev) => {
|
||||||
|
SDB['grid-local'] = gloc.options[gloc.selectedIndex].value
|
||||||
|
};
|
||||||
$('send-to-gridhead').style.display = 'flex';
|
$('send-to-gridhead').style.display = 'flex';
|
||||||
$('send-to-gridspool').style.display = 'flex';
|
$('send-to-gridspool').style.display = 'flex';
|
||||||
} else {
|
} else {
|
||||||
$('send-to-gridhead').style.display = '';
|
$('send-to-gridhead').style.display = '';
|
||||||
$('send-to-gridspool').style.display = '';
|
$('send-to-gridspool').style.display = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendto_gridlocal() {
|
function sendto_gridlocal() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue