Fix moving table for user

This commit is contained in:
2014-04-24 16:57:28 +02:00
parent 27a1022eb4
commit 772b647406
2 changed files with 3 additions and 1 deletions
@@ -44,6 +44,8 @@ App.ApplicationController = Ember.Controller.extend
join_request_approved: ->
@setCurrentList ->
@transitionToRoute 'active_list'
list_changed_table: ->
@setCurrentList()
setCurrentList: (callback)->
success = (list)=>
+1 -1
View File
@@ -209,7 +209,7 @@ class List
#order.section_id = self.section_id
#order.save
#end
broadcast_users 'list_changed_table', list: as_json, section_title: to_table.section.try(:title), from_table_id: from_table
broadcast_users 'list_changed_table', list_id: id #, from_table_id: from_table, to_table_id: to_table.id
broadcast_supplier supplier_id, 'list_changed_table', list: as_json, section_title: to_table.section.try(:title), from_table_id: from_table
end
end