new code logic for saving tree.. should work fine even if the node positions fail
This commit is contained in:
1 parent
3db075b9d2
commit
b1867dd47a
4 files changed
+28
-22
No files matched your search
@@ -24,7 +24,7 @@ class Admin::ItemsController < OrbitBackendController
|
||||
|
||||
def update_position
|
||||
item = Item.find(params[:id])
|
||||
item.shift_to(params[:parent_id], params[:position].to_i)
|
||||
item.shift_to(params[:parent_id], params[:position].to_i, params[:next_sibling_id])
|
||||
render :nothing => true, status: 200
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user