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