diff --git a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee index 3ff757b1a..362b9ba14 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_zoom.js.coffee @@ -26,13 +26,14 @@ class Index extends App.Controller @article_id = params.article_id @signature = undefined @signature_used = undefined + @doNotLog = 0 @key = 'ticket::' + @ticket_id cache = App.Store.get( @key ) if cache @load(cache) update = => - @fetch(@ticket_id) + @fetch( @ticket_id, false) @interval( update, 30000, 'zoom_check' ) fetch: (ticket_id, force) -> @@ -41,7 +42,7 @@ class Index extends App.Controller App.Com.ajax( id: 'ticket_zoom' type: 'GET' - url: 'api/ticket_full/' + ticket_id + url: 'api/ticket_full/' + ticket_id + '?do_not_log=' + @doNotLog data: view: @view processData: true @@ -62,6 +63,7 @@ class Index extends App.Controller @load(data) App.Store.write( @key, data ) ) + @doNotLog = 1 load: (data) => # reset old indexes diff --git a/app/controllers/tickets_controller.rb b/app/controllers/tickets_controller.rb index a33e7f6c9..30100692c 100644 --- a/app/controllers/tickets_controller.rb +++ b/app/controllers/tickets_controller.rb @@ -300,7 +300,9 @@ class TicketsController < ApplicationController end # log object as viewed - log_view( ticket ) + if !params[:do_not_log] + log_view( ticket ) + end # get signature signature = {}