first evented steps

This commit is contained in:
2012-11-27 15:31:31 +01:00
parent e65dc584a4
commit 3da9dc68d7
9 changed files with 53 additions and 24 deletions
@@ -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')