new code logic for saving tree.. should work fine even if the node positions fail

This commit is contained in:
rulingcom committed 2013-11-04 22:20:50 +08:00
1 parent 3db075b9d2
commit b1867dd47a
4 files changed
+28 -22

No files matched your search

+1 -1
View File
@@ -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