fix list section link by normalizing

This commit is contained in:
2014-08-15 14:24:31 +02:00
parent 4ab9f63b33
commit 95e42bb917
7 changed files with 25 additions and 8 deletions
@@ -3,7 +3,12 @@ root.Qsupplier=
watch_events: ->
faye = new Faye.Client(event_host)
faye.subscribe "/supplier/#{supplier_object.id}", (e)=>
<% if Rails.env.development? %>
<% if Rails.env.test? %>
window.faye_log ||= []
faye_message = {}
faye_message[e.event] = e.data
faye_log.push faye_message
<% elsif Rails.env.development? %>
console.log "Event: #{e.event}"
console.log e.data
<% end %>