remember last grid-local endpoint. default hoverPop off

This commit is contained in:
Stewart Allen 2020-10-30 12:50:54 -04:00
commit 5ada3c6bbd
2 changed files with 11 additions and 3 deletions

View file

@ -600,7 +600,7 @@
view: null,
dark: false,
expert: true,
hoverPop: true,
hoverPop: false,
zoomSpeed: 1.0,
thinRender: false,
reverseZoom: true,

View file

@ -217,20 +217,28 @@
grid_local = devs;
let gdev = SDB['grid-local'];
let gloc = $('grid-local');
let html = [];
for (let uuid in devs) {
gdev = gdev || 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) {
$('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-gridspool').style.display = 'flex';
} else {
$('send-to-gridhead').style.display = '';
$('send-to-gridspool').style.display = '';
}
}
function sendto_gridlocal() {