updates for qr handling
This commit is contained in:
@@ -23,16 +23,6 @@ root.Qrammer =
|
||||
clear_active_list: ->
|
||||
window.active_products_list = {}
|
||||
$('#active-order-table').hide()
|
||||
handle_response: (res) ->
|
||||
if(typeof(res) == 'string')
|
||||
return unless res.length
|
||||
if res[0] == '{'
|
||||
res = JSON.parse(res)
|
||||
else
|
||||
eval(res)
|
||||
return
|
||||
window.location = '/' if res['message'] && !res['ok']
|
||||
window.location = '/user/active_list' if res['ok']
|
||||
load_active_orders: () ->
|
||||
$.get('/supplier/active_orders.json', (res) ->
|
||||
body = $('#active-orders-table tbody')
|
||||
|
||||
Reference in New Issue
Block a user