fix depedent func in init_two
This commit is contained in:
parent
3e912abc73
commit
ab1f44adcc
2 changed files with 7 additions and 4 deletions
|
|
@ -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() };
|
||||
|
|
|
|||
Loading…
Reference in a new issue