Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Display order rearrangement of galleries on the Galleries page doesn't work properly. Galleries can be moved via drag & drop but saving of the rearranged state doesn't work . Rearrangement of pictures in gallery works fine.
Comment | File | Size | Author |
---|---|---|---|
#2 | collection-sorting-broken-1228094-2.patch | 740 bytes | Moloc |
Comments
Comment #1
b_ruben CreditAttribution: b_ruben commentedComment #2
Moloc CreditAttribution: Moloc commentedAfter drag & drop rearranging the galleries, the state should be saved. Instead of saving, a JavaScript error is generated:
deparam is defined in the bbq library of jquery, which is loaded in the gallery view (to sort the media), but not in the collection view (to sort the galleries). Adding the missing library solves this issue.
Comment #3
b-netix CreditAttribution: b-netix commentedhow can i add this patch? In witch file/line?
Comment #4
myke CreditAttribution: myke commentedUnder this line (currently line 17):
drupal_add_library('system', 'ui.sortable');
Add this line:
drupal_add_library('system', 'jquery.bbq');
And it'll work perfectly. Now we just need a way to move galleries to other pages!
-Myke
Comment #5
elgandoz CreditAttribution: elgandoz commentedSame here, but my error was:
Uncaught TypeError: Cannot call method 'querystring' of undefined
.The fix above works perfectly.
Thank you
PS: Why the hell it's not included? In the previous versions that was ok...
Comment #6
scorchio CreditAttribution: scorchio commentedObvious fix working perfectly. It would be nice to get this commited as soon as possible.
Comment #7
lsolesen CreditAttribution: lsolesen commented