   page: (e) =>
     e.preventDefault()
     id = $(e.target).data('id')
-    @start_page = id
+    @item_from = id
     @load()
 
+  page: (e) =>
+    e.preventDefault()
+    @item_from = $(e.target).data('from')
+    if !@item_from
+      @item_from = $(e.target).parent().data('from')
+    return if !@item_from
+    @load()

      @render( data )

    else
      data = App.Store.get( 'dashboard_ticket_search' + @name )
      if data
        @render( data )


    @tickets_count = data.tickets_count
    @ticket_ids    = data.tickets
    per_page    = @per_page || 5

    items_total    = @tickets_count
    items_per_page = Math.min(per_page || 10, @tickets_count)
    items_from     = @item_from
    items_till     = items_from-1 + items_per_page
    if items_till > items_total
      items_till = items_total
    html = App.view('dashboard/ticket')(
      overview:       @overview
      items_per_page: items_per_page
      items_from:     items_from
      items_till:     items_till
      items_total:    items_total
    )
    html = $(html)
    html.find('li').removeClass('active')
    html.find(".page [data-id=\"#{@start_page}\"]").parents('li').addClass('active')

    @tickets_in_table = []
    i = items_from - 1
    while i < items_till
      if @ticket_ids[ i ]
        @tickets_in_table.push App.Ticket.retrieve( @ticket_ids[ i ] )
      i = i + 1

    openTicket = (id,e) =>
      ticket = App.Ticket.fullLocal(id)
