[wp-hackers] jQuery UI Sortable in widget admin interface

Jeremy Hough jeremy at digitalbrands.com
Fri Apr 20 21:39:19 UTC 2012


Hi all,

I am extending a custom widget to provide a sortable list of authors. 
I'm finding the list does not let me sort it...

I am able to generate the markup easily enough. I have ensured the 
trigger for the sortable method is set to run on document.ready and 
after dependencies (jquery & jquery-ui) have been loaded.

To top that off, code I put in jquery-ui event handlers executes, and no 
errors are recorded in firefox's error_console.

I've tested the same code in a JS fiddle ( http://jsfiddle.net/Mn3sv/ ), 
and it works without any issues (as it should).

Is there anything that would interfere with the dragging behavior for a 
sortable in the widget page in the WP admin interface?

Instead of dragging to sort the LI items, the text simply gets selected 
instead. For something so simple, it is giving me a lot of trouble to 
get working.

Thanks for any help!

-Jeremy Hough


More information about the wp-hackers mailing list