Commit 9aa6e65a authored by yann300's avatar yann300

fix tab change event

parent e22f0401
...@@ -38,9 +38,7 @@ function tabbedMenu (rendererAPI, compilerEvent, appEvent) { ...@@ -38,9 +38,7 @@ function tabbedMenu (rendererAPI, compilerEvent, appEvent) {
if (!match) return if (!match) return
var cls = match[0] var cls = match[0]
if (!el.hasClass('active')) { if (!el.hasClass('active')) {
el.get(0).parentElement.querySelectorAll('li').forEach(function (li) { el.parent().find('li').removeClass('active')
li.classList.remove('active')
})
$('#optionViews').attr('class', '').addClass(cls) $('#optionViews').attr('class', '').addClass(cls)
el.addClass('active') el.addClass('active')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment