Skip to content

Commit

Permalink
Merge pull request #1 from strux/master
Browse files Browse the repository at this point in the history
Fixed incorrect ordering of root nodes on drag-and-drop save
  • Loading branch information
matenia committed Jul 23, 2012
2 parents 406b156 + 36353ee commit b5aaff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_app/app/controllers/categories_controller.rb
Expand Up @@ -45,7 +45,7 @@ def destroy
# --- I WELCOME ANY SUGGESTIONS TO REFACTOR THIS (do the same with less database calls) --- # --- I WELCOME ANY SUGGESTIONS TO REFACTOR THIS (do the same with less database calls) ---
def array def array
# assign the sorted tree to a variable # assign the sorted tree to a variable
newlist = params[:ul] newlist = params[:ul].sort
# initialize the previous item # initialize the previous item
previous = nil previous = nil
#loop through each item in the new list (passed via ajax) #loop through each item in the new list (passed via ajax)
Expand Down

0 comments on commit b5aaff6

Please sign in to comment.