abstract out faye

This commit is contained in:
2012-11-29 11:32:22 +01:00
parent 0fa0d1e0ba
commit b9c0ca326b
11 changed files with 25 additions and 18 deletions
@@ -1,7 +1,7 @@
root = exports ? this
root.Qsupplier=
watch_events: ->
faye = new Faye.Client('http://localhost:9292/faye')
faye = new Faye.Client(event_host)
faye.subscribe "/supplier/"+supplier_id, (e)=>
if(e.event == 'new_order')
body = $('#active-orders-table tbody')