Fix moving table for user
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user