Closed (fixed)
Project:
Node Gallery
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 May 2012 at 19:41 UTC
Updated:
30 Nov 2012 at 21:20 UTC
Jump to comment: Most recent file
When uploading additional images to a gallery, the position of each new image is inconsistent. Most views will do a sort first by weight, and then by node ID or created date. However, this can be problematic:
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1608916.2-jquery_ui.weight.patch | 659 bytes | zengenuity |
| #1 | 1608916.1-image-weight.patch | 1.13 KB | deviantintegral |
Comments
Comment #1
deviantintegral commentedAttached is a patch that always sets the weight on new image nodes. This has the effect of storing explicit ordering for photos instead of relying on the node ID.
Comment #2
zengenuity commentedI think this can only happen when you have jQuery UI sorting enabled. (Can you confirm that's what you are using?) The tabledrag interface always makes the weights negative, but the jQuery UI version is using positive numbers. They should be consistent. The attached patch makes the jQuery UI interface use negative numbers like tabledrag does.
Your patch looks like it works, but I think this is a better way to fix the problem.
Comment #3
zengenuity commentedCommitted: http://drupalcode.org/project/node_gallery.git/commit/a31c34174799179bb8...