remove old code
This commit is contained in:
parent
bcfc9aee3d
commit
7e51ff20fa
1 changed files with 1 additions and 29 deletions
|
|
@ -3042,24 +3042,6 @@
|
|||
|
||||
function showHelp() {
|
||||
showHelpFile(`local`,() => {});
|
||||
// showHelpFile(`/kiri/lang/${KIRI.lang.get()}-help.html?${KIRI.version}`,() => {
|
||||
// const sel = $('help-sel');
|
||||
// const labels = [...sel.getElementsByTagName('div')];
|
||||
// const tabs = [];
|
||||
// const click = (label, tab) => {
|
||||
// labels.forEach(l => l.classList.remove('sel'));
|
||||
// label.classList.add('sel');
|
||||
// tabs.forEach(t => t.style.display = 'none');
|
||||
// tab.style.display = 'flex';
|
||||
// };
|
||||
// labels.forEach(label => {
|
||||
// const name = label.getAttribute('tab');
|
||||
// const tab = $(`help-tab-${name}`);
|
||||
// tabs.push(tab);
|
||||
// label.onclick = () => { click(label, tab) };
|
||||
// });
|
||||
// click(labels[1], tabs[1]);
|
||||
// });
|
||||
}
|
||||
|
||||
function showHelpFile(local,then) {
|
||||
|
|
@ -3067,17 +3049,7 @@
|
|||
WIN.open("//docs.grid.space/", "_help");
|
||||
return;
|
||||
}
|
||||
// ajax(local, function(html) {
|
||||
// UI.help.innerHTML = html;
|
||||
// try {
|
||||
$('kiri-version').innerHTML = `${LANG.version} ${KIRI.version}`;
|
||||
// // $('kiri-version').innerHTML = `${KIRI.version}`;
|
||||
// } catch (e) { }
|
||||
// if (then) {
|
||||
// then();
|
||||
// }
|
||||
// showModal('help');
|
||||
// });
|
||||
$('kiri-version').innerHTML = `${LANG.version} ${KIRI.version}`;
|
||||
showModal('help');
|
||||
API.event.emit('help.show', local);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue