MCPcopy Create free account
hub / github.com/codecombat/codecombat / toggleTab

Method toggleTab

app/views/editor/level/LevelEditView.js:683–694  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

681 }
682
683 toggleTab (e) {
684 this.renderScrollbar()
685 if (!($(document).width() <= 800)) { return }
686 const li = $(e.target).closest('li')
687 if (li.hasClass('active')) {
688 li.parent().find('li').show()
689 } else {
690 li.parent().find('li').hide()
691 li.show()
692 }
693 return console.log(li.hasClass('active'))
694 }
695
696 onClickDocumentationTab (e) {
697 // It's either too late at night or something is going on with Bootstrap nested tabs, so we do the click instead of using .active.

Callers

nothing calls this directly

Calls 2

logMethod · 0.80
hideMethod · 0.45

Tested by

no test coverage detected