removed code for websockets

This commit is contained in:
Harry Bomrah 2016-03-11 18:10:39 +08:00
parent e8b90639c6
commit f31d43619a
1 changed files with 6 additions and 6 deletions

View File

@ -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