first evented steps
This commit is contained in:
@@ -9,6 +9,13 @@ class Quser
|
||||
formatted += ' '
|
||||
formatted += utc.substr(11, 5)
|
||||
formatted
|
||||
watch_events: ->
|
||||
faye = new Faye.Client('http://localhost:9292/faye')
|
||||
faye.subscribe "/user/"+QMobile.user_id(), (e)->
|
||||
debugger
|
||||
if(e.event == 'list_closed')
|
||||
redirect_to 'user_root', {list_closed: 'true'}
|
||||
console.log(data)
|
||||
home_loader: ->
|
||||
$.getJSON(data_host + '/user/list_info.json?' + authentication_string, (res) => @handle_active_list_default_actions(res))
|
||||
handle_active_list: (callback) ->
|
||||
@@ -204,6 +211,7 @@ class Quser
|
||||
h['table_id'] = match[1] if match
|
||||
for product_id, number of window.active_products_list
|
||||
h['products['+product_id+']'] = number
|
||||
debugger
|
||||
$.post(data_host + '/user/order_selected_products', $.extend(h, authentication_object), ((res) => @handle_response(res)), 'json')
|
||||
handle_response: (res) ->
|
||||
if(typeof(res) == 'string')
|
||||
|
||||
Reference in New Issue
Block a user