I'm not sure if this is a bug report or a feature request.

I was having trouble with a site that used nodequeue and chosen (http://drupal.org/project/chosen) .

Chosen was adding div elements with the 'node-position' class, which confused nodequeueUpdateNodePositions in nodequeue_dragdrop.js

This was causing duplicate positions on submit of the ordering form.

I fixed this by changing the selectors in the function to only operate on (and count) select form elements.

I'll attach a patch below.

It might be worth having a look at this to commit, to avoid conflicts with other DOM manipulating modules.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tripper54’s picture

Status: Active » Needs review
FileSize
781 bytes

Patch attached.

mfb’s picture

Version: 7.x-3.x-dev » 7.x-2.x-dev
Category: feature » bug
FileSize
2.66 KB

Also running into this myself. Another idea would be to change the class to a properly name-spaced class: nodequeue-position rather than node-position.

tripper54’s picture

Namespacing the class is a good idea, but I'm not sure it would help with my problem. I think chosen is creating its own div tags based on select form elements on the page, and duplicating the classes.

mfb’s picture

Ah yes you are correct, my patch did not seem to help :)

vildechaya’s picture

Issue summary: View changes

#1 worked perfectly for me, with the same Chosen/Nodequeue conflict.

fizk’s picture

Status: Needs review » Closed (duplicate)