better broadcasting for user
This commit is contained in:
@@ -22,6 +22,16 @@ class Quser
|
||||
$('#order-row-'+e.data.id).addClass('active')
|
||||
if(e.event == 'order_being_delivered')
|
||||
$('#order-row-'+e.data.id).addClass('delivered')
|
||||
if(e.event == 'list_changed_table')
|
||||
$('.table-number').text(e.data.table.number)
|
||||
if(e.event == 'list_needs_help')
|
||||
window.active_list.needs_help = true
|
||||
@list_needs_help_default_action()
|
||||
if(e.event == 'list_needs_payment')
|
||||
window.active_list.needs_payment = true
|
||||
@list_needs_payment_default_action()
|
||||
|
||||
console.log(e)
|
||||
false
|
||||
home_loader: ->
|
||||
$.getJSON(data_host + '/user/list_info.json?' + authentication_string, (res) => @handle_active_list_default_actions(res))
|
||||
|
||||
Reference in New Issue
Block a user