git ssb

16+

Dominic / patchbay



Commit 84955f6a151e18bfc8131c8ffbcd043272b13500

app.js tidy

mix irving committed on 3/24/2017, 4:03:46 AM
Parent: 4be1b90efd674f05f2f89a32ee9679a80dab57b8

Files changed

main/html/app.jschanged
main/html/app.jsView
@@ -23,9 +23,9 @@
2323 insertCss(css)
2424
2525 function onSelect (indexes) {
2626 const ids = indexes.map(index => tabs.get(index).content.id)
27- if (!search) { console.log('boo') ; return }
27+ if (!search) { console.log('THERE SHOULD BE A SEARCH, GOT', search) ; return }
2828
2929 if (ids.length > 1) search.input.value = 'split('+ids.join(',')+')'
3030 else search.input.value = ids[0]
3131 }
@@ -35,17 +35,11 @@
3535 return true
3636 }
3737
3838 var page = addPage(path, true, false)
39- // const el = api.screen_view(path)
40- // if (!el) return
41- // if(!el.title) el.title = path
42-
43- // el.scroll = keyscroll(el.querySelector('.Scroller .content'))
44- // tabs.add(el, change)
4539 return change
4640 })
47- const tabs = Tabs(onSelect, { append: h('div.extra', [ search ]) })
41+ const tabs = Tabs(onSelect, { append: h('div.navExtra', [ search ]) })
4842 const App = h('App', tabs)
4943
5044 function addPage (link, change, split) {
5145 const page = api.router.html.page(link)
@@ -54,9 +48,9 @@
5448 page.id = page.id || link
5549 tabs.add(page, change, split)
5650 }
5751 const initialTabs = ['/public', '/private', '/notifications']
58- initialTabs.forEach(r => addPage(r))
52+ initialTabs.forEach(p => addPage(p))
5953 tabs.select(0)
6054
6155 catchClick(App, (link, { ctrlKey: openBackground, isExternal }) => {
6256 if (isExternal) api.main.html.externalConfirm(link)

Built with git-ssb-web