fix depedent func in init_two

This commit is contained in:
Stewart Allen 2020-06-08 00:31:28 -04:00
commit ab1f44adcc
2 changed files with 7 additions and 4 deletions

View file

@ -1566,10 +1566,6 @@
UI.toolMetric.onclick = updateTool; UI.toolMetric.onclick = updateTool;
UI.toolType.onchange = updateTool; UI.toolType.onchange = updateTool;
function showSetup() {
API.modal.show('setup');
}
function mksvg(src) { function mksvg(src) {
let svg = DOC.createElement('svg'); let svg = DOC.createElement('svg');
svg.innerHTML = src; svg.innerHTML = src;
@ -1759,6 +1755,10 @@
// lift curtain // lift curtain
$('curtain').style.display = 'none'; $('curtain').style.display = 'none';
function showSetup() {
API.modal.show('setup');
}
// bind interface action elements // bind interface action elements
$('app-name').onclick = API.help.show; $('app-name').onclick = API.help.show;
$('app-mode').onclick = (ev) => { ev.stopPropagation(); showSetup() }; $('app-mode').onclick = (ev) => { ev.stopPropagation(); showSetup() };

View file

@ -722,10 +722,13 @@ th, tr, td {
.var-row label { .var-row label {
padding: 2px 4px 2px 0; padding: 2px 4px 2px 0;
flex-grow: 1; flex-grow: 1;
font-size: smaller;
} }
.var-row input { .var-row input {
margin-right: 0; margin-right: 0;
margin-bottom: 1px; margin-bottom: 1px;
padding-bottom: 1px;
padding-top: 1px;
} }
.var-row button { .var-row button {
margin-right: 0; margin-right: 0;