From 9ef972d111122b50331a5c9e5968cf8c1a7b03f8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 28 Oct 2016 17:04:21 +0200 Subject: [PATCH] Removed console log for debugging. --- .../javascripts/app/controllers/ticket_zoom.coffee | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.coffee index 1e7a82d0f..55877649f 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.coffee @@ -62,10 +62,10 @@ class App.TicketZoom extends App.Controller fetchMayBe: (data) => if @ticketUpdatedAtLastCall if new Date(data.updated_at).getTime() is new Date(@ticketUpdatedAtLastCall).getTime() - console.log('debug no fetch, current ticket already there or requested') + #console.log('debug no fetch, current ticket already there or requested') return if new Date(data.updated_at).getTime() < new Date(@ticketUpdatedAtLastCall).getTime() - console.log('debug no fetch, current ticket already newser or requested') + #console.log('debug no fetch, current ticket already newser or requested') return @ticketUpdatedAtLastCall = data.updated_at @@ -131,19 +131,19 @@ class App.TicketZoom extends App.Controller # check if ticket has changed newTicketRaw = data.assets.Ticket[@ticket_id] - console.log(newTicketRaw.updated_at) - console.log(@ticketUpdatedAtLastCall) + #console.log(newTicketRaw.updated_at) + #console.log(@ticketUpdatedAtLastCall) if @ticketUpdatedAtLastCall # ignore if record is already shown if ignoreSame && new Date(newTicketRaw.updated_at).getTime() is new Date(@ticketUpdatedAtLastCall).getTime() - console.log('debug no fetched, current ticket already there or requested') + #console.log('debug no fetched, current ticket already there or requested') return # do not render if newer ticket is already requested if new Date(newTicketRaw.updated_at).getTime() < new Date(@ticketUpdatedAtLastCall).getTime() - console.log('fetched no fetch, current ticket already newer') + #console.log('fetched no fetch, current ticket already newer') return # remember current record if newer as requested record