fix tab change event

pull/1/head
yann300 8 years ago
parent e22f0401cc
commit 9aa6e65ae7
  1. 4
      src/app/tabbed-menu.js

@ -38,9 +38,7 @@ function tabbedMenu (rendererAPI, compilerEvent, appEvent) {
if (!match) return
var cls = match[0]
if (!el.hasClass('active')) {
el.get(0).parentElement.querySelectorAll('li').forEach(function (li) {
li.classList.remove('active')
})
el.parent().find('li').removeClass('active')
$('#optionViews').attr('class', '').addClass(cls)
el.addClass('active')
}

Loading…
Cancel
Save