   onChapterNavigationClick: (e) =>
     e.preventDefault()
     index = if $(e.target).hasClass('chapter-navigation-next') then @model.get('number')+1 else @model.get('number')-1
-    console.log 'go to chapter', @model.get('number'), $(e.target).hasClass('chapter-navigation-next')
     @$el.find('.chapters-list li:nth-child('+index+') a').trigger 'click'
 
   onChapterNavigationChildrenClick: (e) ->

        description:  @model.get('description')
        #image: if @node.get('image') then @node.get('image').huge.url else null
      }
      @$el.find('.panel-body .index-content, .panel-heading .index-header').addClass 'hide'
      @$el.find('.panel-body .chapter-content, .panel-heading .chapter-header').removeClass 'hide'
      @$el.find('.panel-body .chapter-content').html template
      @$el.find('.panel-heading .chapter-header .chapter-index').html @model.get('number')
    else
      @$el.find('.panel-body .index-content, .panel-heading .index-header').removeClass 'hide'
      @$el.find('.panel-body .chapter-content, .panel-heading .chapter-header').addClass 'hide'


class StoryInfo extends Backbone.View

  el:             '.story-info'
  chaptersLength: null

  initialize: ->
    # Get chapters list length
    @chaptersLength = @$el.find('.chapters-list li').size()
    # Show panel when click story-info btn
    $('.visualization-graph-menu-actions .btn-story-info').click @onBtnStoryInfoClick
    # Hide panel when click close btn
