Supplier dashboard fixes

This commit is contained in:
2013-09-30 18:41:23 +02:00
parent 8ea2e79dc2
commit d96216ec29
5 changed files with 54 additions and 4 deletions
@@ -15,4 +15,4 @@ Qsupplier.App.List = DS.Model.extend
@get('orders').forEach (order)->
order.close()
@set('table', null)
@list.set('state', 'closed')
@set('state', 'closed')
@@ -21,7 +21,7 @@ DS.Model.reopenClass
relation = relation[0]
if relation.kind == 'belongsTo' and attributes["#{relation.name}_id"]
attributes[relation.name] = model.find(attributes["#{relation.name}_id"])
delete attributes["#{relation.name}_id"]
#delete attributes["#{relation.name}_id"]
#store.push @, attributes
@createRecord attributes