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.
| Comment | File | Size | Author |
|---|---|---|---|
| nodequeue-weightChange.patch | 1.55 KB | eyal shalev |
Comments
Comment #2
amateescu commentedLooks good to me. Polished a little and committed to 7.x-2.x and 7.x-3.x.
http://drupalcode.org/project/nodequeue.git/commit/1a69bec
http://drupalcode.org/project/nodequeue.git/commit/9a17b5c
Comment #3
eyal shalevGlad I could help.