Fix structure position

This commit is contained in:
chris committed 2013-10-08 12:33:24 +08:00
1 parent fe1869199e
commit 5328a26440
4 files changed
+18 -12

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ class Admin::ItemsController < OrbitBackendController
def update_position
item = Item.find(params[:id])
item.shift_to(params[:parent_id], params[:position].to_i - 1)
item.shift_to(params[:parent_id], params[:position].to_i)
render :nothing => true, status: 200
end
@@ -274,8 +274,6 @@ class Admin::UsersNewInterfaceController < OrbitMemberController
else
user.move_below(user_at_position)
end
elsif to_go > User.count
user.move_to_bottom
end
end
render nothing: true, status: 200