removed code for websockets
This commit is contained in:
parent
e8b90639c6
commit
f31d43619a
|
@ -204,12 +204,12 @@ class Admin::TicketsController < OrbitAdminController
|
|||
rescue e
|
||||
end
|
||||
end
|
||||
url = "/admin/tickets/#{tq.ticket.id.to_s}#response_#{response.id.to_s}"
|
||||
Fiber.new{
|
||||
params[:user_tags].each do |user_id|
|
||||
WebsocketRails["tag_notifications_for_#{user_id}".to_sym].trigger(:new_notification_recieved, {"ticket_link" => "<a href='#{url}'>#{tq.ticket.subject}</a>", "total_ticket_count" => Ticket.get_ticket_unread_count_for_user(user_id), "blink_message" => "#{current_user.name} tagged you!"})
|
||||
end
|
||||
}.resume
|
||||
# url = "/admin/tickets/#{tq.ticket.id.to_s}#response_#{response.id.to_s}"
|
||||
# Fiber.new{
|
||||
# params[:user_tags].each do |user_id|
|
||||
# WebsocketRails["tag_notifications_for_#{user_id}".to_sym].trigger(:new_notification_recieved, {"ticket_link" => "<a href='#{url}'>#{tq.ticket.subject}</a>", "total_ticket_count" => Ticket.get_ticket_unread_count_for_user(user_id), "blink_message" => "#{current_user.name} tagged you!"})
|
||||
# end
|
||||
# }.resume
|
||||
end
|
||||
render :partial => "response", :object => response
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue