Fix moving table for user
This commit is contained in:
@@ -44,6 +44,8 @@ App.ApplicationController = Ember.Controller.extend
|
|||||||
join_request_approved: ->
|
join_request_approved: ->
|
||||||
@setCurrentList ->
|
@setCurrentList ->
|
||||||
@transitionToRoute 'active_list'
|
@transitionToRoute 'active_list'
|
||||||
|
list_changed_table: ->
|
||||||
|
@setCurrentList()
|
||||||
|
|
||||||
setCurrentList: (callback)->
|
setCurrentList: (callback)->
|
||||||
success = (list)=>
|
success = (list)=>
|
||||||
|
|||||||
+1
-1
@@ -209,7 +209,7 @@ class List
|
|||||||
#order.section_id = self.section_id
|
#order.section_id = self.section_id
|
||||||
#order.save
|
#order.save
|
||||||
#end
|
#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
|
broadcast_supplier supplier_id, 'list_changed_table', list: as_json, section_title: to_table.section.try(:title), from_table_id: from_table
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user