diff options
Diffstat (limited to 'themes/luci-theme-bootstrap/htdocs/luci-static/resources/menu-bootstrap.js')
-rw-r--r-- | themes/luci-theme-bootstrap/htdocs/luci-static/resources/menu-bootstrap.js | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/themes/luci-theme-bootstrap/htdocs/luci-static/resources/menu-bootstrap.js b/themes/luci-theme-bootstrap/htdocs/luci-static/resources/menu-bootstrap.js index 5400276b08..32922f3842 100644 --- a/themes/luci-theme-bootstrap/htdocs/luci-static/resources/menu-bootstrap.js +++ b/themes/luci-theme-bootstrap/htdocs/luci-static/resources/menu-bootstrap.js @@ -22,14 +22,6 @@ return baseclass.extend({ if (node) this.renderTabMenu(node, url); } - - document.addEventListener('poll-start', this.handleBodyMargin); - document.addEventListener('poll-stop', this.handleBodyMargin); - document.addEventListener('uci-new-changes', this.handleBodyMargin); - document.addEventListener('uci-clear-changes', this.handleBodyMargin); - window.addEventListener('resize', this.handleBodyMargin); - - this.handleBodyMargin(); }, renderTabMenu: function(tree, url, level) { @@ -96,9 +88,7 @@ return baseclass.extend({ var isActive = (L.env.requestpath.length ? children[i].name == L.env.requestpath[0] : i == 0); ul.appendChild(E('li', { 'class': isActive ? 'active' : null }, [ - E('a', { 'href': L.url(children[i].name) }, [ _(children[i].title) ]), - ' ', - E('span', { 'class': 'divider' }, [ '|' ]) + E('a', { 'href': L.url(children[i].name) }, [ _(children[i].title) ]) ])); if (isActive) @@ -107,12 +97,5 @@ return baseclass.extend({ if (ul.children.length > 1) ul.style.display = ''; - }, - - handleBodyMargin: function(ev) { - var body = document.querySelector('body'), - head = document.querySelector('header'); - - body.style.marginTop = head.offsetHeight + 'px'; } }); |