removed code for websockets
This commit is contained in:
parent
e8b90639c6
commit
f31d43619a
|
@ -204,12 +204,12 @@ class Admin::TicketsController < OrbitAdminController
|
||||||
rescue e
|
rescue e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
url = "/admin/tickets/#{tq.ticket.id.to_s}#response_#{response.id.to_s}"
|
# url = "/admin/tickets/#{tq.ticket.id.to_s}#response_#{response.id.to_s}"
|
||||||
Fiber.new{
|
# Fiber.new{
|
||||||
params[:user_tags].each do |user_id|
|
# 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!"})
|
# 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
|
# end
|
||||||
}.resume
|
# }.resume
|
||||||
end
|
end
|
||||||
render :partial => "response", :object => response
|
render :partial => "response", :object => response
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue