A demand arose in a site we were developing to arrange the order in a node queue via changing the weight of the node in the queue.

Additional info:
Our site needed to use a queue that could possibly contain a few thousand nodes, using drag & drop was out of the question and when trying to change the weight the module overwrote the the nodes instead of changing the order.

Fixes:
I created a diff patch for the javascript file that adds the when a user changes the weight the javascript places the node in that place in the queue (as if it was dragged there). Saving the queue will save it just as in the drag & drop procedure.

If someone fixed that problem in a better or may have comments on the implementation of the patch file, I'll be very happy to hear.

CommentFileSizeAuthor
nodequeue-weightChange.patch1.55 KBeyal shalev

Comments

Status: Needs review » Needs work

The last submitted patch, nodequeue-weightChange.patch, failed testing.

amateescu’s picture

Version: 7.x-2.0-beta1 » 7.x-3.x-dev
Status: Needs work » Fixed
Issue tags: -queue, -+patch
eyal shalev’s picture

Glad I could help.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.