Merge branch 'develop' into interface
Conflicts: app/assets/javascripts/app/models/_application_model.js.coffee
This commit is contained in:
commit
b957b843a3
3 changed files with 6 additions and 6 deletions
|
@ -317,7 +317,7 @@ class _taskManagerSingleton extends App.Controller
|
||||||
@TaskbarIdInt
|
@TaskbarIdInt
|
||||||
|
|
||||||
taskUpdate: (task) ->
|
taskUpdate: (task) ->
|
||||||
@log 'notice', "UPDATE task #{task.id}", task
|
#@log 'notice', "UPDATE task #{task.id}", task
|
||||||
@tasksToUpdate[ task.key ] = 'toUpdate'
|
@tasksToUpdate[ task.key ] = 'toUpdate'
|
||||||
App.Event.trigger 'task:render'
|
App.Event.trigger 'task:render'
|
||||||
|
|
||||||
|
|
|
@ -151,20 +151,20 @@ class _webSocketSingleton extends App.Controller
|
||||||
ping: =>
|
ping: =>
|
||||||
return if @backend is 'ajax'
|
return if @backend is 'ajax'
|
||||||
|
|
||||||
@log 'debug', 'send websockend ping'
|
@log 'debug', 'send websocket ping'
|
||||||
@send( { action: 'ping' } )
|
@send( { action: 'ping' } )
|
||||||
|
|
||||||
# check if ping is back within 2 min
|
# check if ping is back within 2 min
|
||||||
App.Delay.clear 'websocket-ping-check', 'ws'
|
App.Delay.clear 'websocket-ping-check', 'ws'
|
||||||
check = =>
|
check = =>
|
||||||
@log 'notice', 'no websockend ping response, reconnect...'
|
@log 'notice', 'no websocket ping response, reconnect...'
|
||||||
@close()
|
@close()
|
||||||
App.Delay.set check, 90000, 'websocket-ping-check', 'ws'
|
App.Delay.set check, 90000, 'websocket-ping-check', 'ws'
|
||||||
|
|
||||||
pong: ->
|
pong: ->
|
||||||
return if @backend is 'ajax'
|
return if @backend is 'ajax'
|
||||||
|
|
||||||
@log 'debug', 'received websockend ping'
|
@log 'debug', 'received websocket ping'
|
||||||
|
|
||||||
# test again after 1 min
|
# test again after 1 min
|
||||||
App.Delay.set @ping, 60000, 'websocket-pong', 'ws'
|
App.Delay.set @ping, 60000, 'websocket-pong', 'ws'
|
||||||
|
|
|
@ -277,8 +277,8 @@ class TicketsController < ApplicationController
|
||||||
links.each { |item|
|
links.each { |item|
|
||||||
link_list.push item
|
link_list.push item
|
||||||
if item['link_object'] == 'Ticket'
|
if item['link_object'] == 'Ticket'
|
||||||
ticket = Ticket.lookup( :id => item['link_object_value'] )
|
linked_ticket = Ticket.lookup( :id => item['link_object_value'] )
|
||||||
assets = ticket.assets(assets)
|
assets = linked_ticket.assets(assets)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue