       $(@options.pages[i]['panel_selector']).amplePanels('enable') 
       @controls()
   
+  # Toggles display of left/right arrows which control amplePanels paging event, determined by `display`.
   controls: (display=true) ->
     @log "controls(#{display})"
     display = false if $(@active_panel).find('li').length < @options.pages_options.per_page

          @toggle() unless @modal_active
      e.stopPropagation();
    
    $(document).keydown (e) =>
      return unless @keys_enabled
      if @active_panel

      html += Mustache.to_html @tpl(tpl), el
    html
  
  # Expands and collapses asset toolbar.
  toggle: ->
    el = $("##{@options.id}")
    if @options.expanded 
