Items in the widget aren't draggable to sort.

joachim - December 6, 2008 - 14:16
Project:CCK Node Reference ASM Select
Version:5.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

(opening this as http://drupal.org/node/342635 is a bit cluttered)

I've set the widget to sortable, but the rows of the widget aren't reacting to being dragged.

My versions are:
jQuery 1.2.6 via jquery_update module
jQuery UI 1.5.3
Alternate Select Multiple (asmSelect) 1.0.2 beta

#1

electricmonk - December 6, 2008 - 20:20

See if you can run jQuery UI's sortable demos in the same Drupal installation you're using to test asmSelect.

Also, take a look at the page source and look for the js this module generates, see if sortable is set to true.

This is an asmSelect feature and should work out of the box.

#2

joachim - December 9, 2008 - 15:49

The JS in the page source head is:

$(document).ready(function() {
$('#edit-field-noderef-audio-nids').asmSelect({
addItemTarget: 'bottom',
sortable: 1,
animate: 1,
highlight: 1,
removeLabel: 'Remove',
highlightAddedLabel: 'Added ',
highlightRemovedLabel: 'Removed '
});
});

#3

nath - December 9, 2008 - 15:55

Look in your admin/logs/watchdog
I just had the case with a test installation that the jquery_ui package was missing ui.core.min.js, perhaps that is your problem as well.

#4

joachim - December 9, 2008 - 18:48

Yup, found that in the log.

But I've just downloaded the stable Jquery.ui from here http://ui.jquery.com/download again, and it's still missing that file!
What version do I need?

#5

nath - December 10, 2008 - 08:58

It seems they goofed up in packaging that file. I simply copied the uncompressed version, that works as well.

#6

joachim - December 10, 2008 - 10:37

Yup, works now.
You might want to add a note to documentation page / project page until the next release of the jquery plugin is out...

 
 

Drupal is a registered trademark of Dries Buytaert.