mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
Help button should open "Overview" (Guide) by default
This commit is contained in:
parent
e8f18f08f5
commit
fd8f65cadc
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ module.exports = class LevelGuideView extends CocoView
|
||||||
if @helpVideos.length
|
if @helpVideos.length
|
||||||
startingTab = 0
|
startingTab = 0
|
||||||
else
|
else
|
||||||
startingTab = _.findIndex @docs, slug: 'intro'
|
startingTab = _.findIndex @docs, slug: 'overview'
|
||||||
startingTab = 0 if startingTab is -1
|
startingTab = 0 if startingTab is -1
|
||||||
# incredible hackiness. Getting bootstrap tabs to work shouldn't be this complex
|
# incredible hackiness. Getting bootstrap tabs to work shouldn't be this complex
|
||||||
@$el.find(".nav-tabs li:nth(#{startingTab})").addClass('active')
|
@$el.find(".nav-tabs li:nth(#{startingTab})").addClass('active')
|
||||||
|
|
Loading…
Reference in a new issue