Commit 9aa6e65a authored by yann300's avatar yann300

fix tab change event

parent e22f0401
......@@ -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')
}
......
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